mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -16,7 +16,7 @@ class StatsSocket < SocketServer
|
||||
when "v8_stat"
|
||||
stats = {}
|
||||
ObjectSpace.each_object(MiniRacer::Context) do |context|
|
||||
context.heap_stats.each do |k,v|
|
||||
context.heap_stats.each do |k, v|
|
||||
stats[k] = (stats[k] || 0) + v
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user