summaryrefslogtreecommitdiff
path: root/lib/gitlab
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-07-25 00:35:41 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-07-25 00:35:41 +0000
commit90b4a8e33f50ed9c6ddc8808970efee182b98bc1 (patch)
treea0d335dbd3692d550aaf21e4cccc78d043e4ad7e /lib/gitlab
parent7aa0d40b3818b79ee2253dc7eaa3171a10f40da8 (diff)
parent07a308ad1b3e4ac1c6a3d81a60dac5c4254281b9 (diff)
downloadgitlab-ce-90b4a8e33f50ed9c6ddc8808970efee182b98bc1.tar.gz
Merge branch 'sh-rubocop-reverse-each' into 'master'
Enable Rubocop Performance/ReverseEach See merge request gitlab-org/gitlab-ce!31120
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/profiler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/profiler.rb b/lib/gitlab/profiler.rb
index 890228e5e78..615c0ec374c 100644
--- a/lib/gitlab/profiler.rb
+++ b/lib/gitlab/profiler.rb
@@ -166,7 +166,7 @@ module Gitlab
[model, times.count, times.sum]
end
- summarised_load_times.sort_by(&:last).reverse.each do |(model, query_count, time)|
+ summarised_load_times.sort_by(&:last).reverse_each do |(model, query_count, time)|
logger.info("#{model} total (#{query_count}): #{time.round(2)}ms")
end
end