Fix RuboCop Performance/BindCall offenses
This commit is contained in:
parent
f4218a6316
commit
921753cf84
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user