Fix RuboCop Performance/BindCall offenses

This commit is contained in:
Issy Long 2024-02-22 23:52:46 +00:00
parent f4218a6316
commit 921753cf84
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View File

@ -464,8 +464,6 @@ Style/WordArray:
# TODO: Enable these cops once https://github.com/Homebrew/brew/pull/16337#issuecomment-1855668516 is done.
Naming/BlockForwarding:
Enabled: false
Performance/BindCall:
Enabled: false
Style/ArgumentsForwarding:
Enabled: false
Style/HashSyntax:

View File

@ -65,7 +65,7 @@ module Homebrew
time = Time.now
begin
method.bind(self).call(*args, &block)
method.bind_call(self, *args, &block)
ensure
$times[name] ||= 0
$times[name] += Time.now - time