mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Not initializing variable for looping if unused in loop
This commit is contained in:
@ -23,7 +23,7 @@ def profile_allocations(name)
|
||||
initial_size = ObjectSpace.count_objects
|
||||
yield
|
||||
changes = ObjectSpace.count_objects
|
||||
changes.each do |k,v|
|
||||
changes.each do |k, _|
|
||||
changes[k] -= initial_size[k]
|
||||
end
|
||||
puts "#{name} changes"
|
||||
|
Reference in New Issue
Block a user