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.
|
# TODO: Enable these cops once https://github.com/Homebrew/brew/pull/16337#issuecomment-1855668516 is done.
|
||||||
Naming/BlockForwarding:
|
Naming/BlockForwarding:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Performance/BindCall:
|
|
||||||
Enabled: false
|
|
||||||
Style/ArgumentsForwarding:
|
Style/ArgumentsForwarding:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/HashSyntax:
|
Style/HashSyntax:
|
||||||
|
|||||||
@ -65,7 +65,7 @@ module Homebrew
|
|||||||
time = Time.now
|
time = Time.now
|
||||||
|
|
||||||
begin
|
begin
|
||||||
method.bind(self).call(*args, &block)
|
method.bind_call(self, *args, &block)
|
||||||
ensure
|
ensure
|
||||||
$times[name] ||= 0
|
$times[name] ||= 0
|
||||||
$times[name] += Time.now - time
|
$times[name] += Time.now - time
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user