aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-08 20:38:32 +0200
committerGitHub2017-10-08 20:38:32 +0200
commitb806a53d88938ab2d2aeb5e96651ed6d47efcdf9 (patch)
tree067464b4c08f4c16ca3439b533f06669a78c370c /Library/Homebrew/utils.rb
parent91ab116ace7f4f97d3440190463c93be9ec6d675 (diff)
parent175ca909ee1a5b57aa0cae2c879920511f311b14 (diff)
downloadbrew-b806a53d88938ab2d2aeb5e96651ed6d47efcdf9.tar.bz2
Merge pull request #3278 from reitermarkus/code-style
Clean up code style and remove `.rubocop_todo.yml`.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index d293b2a6f..237ffa74e 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -229,10 +229,9 @@ module Homebrew
EOS
end
- # Hash of Module => Set(method_names)
- @injected_dump_stat_modules = {}
-
+ # rubocop:disable Style/GlobalVars
def inject_dump_stats!(the_module, pattern)
+ @injected_dump_stat_modules ||= {}
@injected_dump_stat_modules[the_module] ||= []
injected_methods = @injected_dump_stat_modules[the_module]
the_module.module_eval do
@@ -260,6 +259,7 @@ module Homebrew
end
end
end
+ # rubocop:enable Style/GlobalVars
end
def with_system_path