diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-30 14:51:42 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-30 14:51:42 +0200 |
commit | fdcb7e36859ed6cf2ce5cb1117391d791213e80e (patch) | |
tree | a3f13895b14d889e07ce9dd1a7e2287f0d6db5ff /app/models/network | |
parent | 43c35b0f20fb3bb67ea2b96bf8f806c7e95b6aec (diff) | |
download | gitlab-ce-fdcb7e36859ed6cf2ce5cb1117391d791213e80e.tar.gz |
Enable Style/SpaceBeforeComma rubocop coprubocop/enable-space-before-comma-cop
No spaces before commas.
See #17478
Diffstat (limited to 'app/models/network')
-rw-r--r-- | app/models/network/graph.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/app/models/network/graph.rb b/app/models/network/graph.rb index 9259cb1a0fa..dd66d681c09 100644 --- a/app/models/network/graph.rb +++ b/app/models/network/graph.rb @@ -22,9 +22,16 @@ module Network def collect_notes h = Hash.new(0) - @project.notes.where('noteable_type = ?' ,"Commit").group('notes.commit_id').select('notes.commit_id, count(notes.id) as note_count').each do |item| - h[item.commit_id] = item.note_count.to_i - end + + @project + .notes + .where('noteable_type = ?', 'Commit') + .group('notes.commit_id') + .select('notes.commit_id, count(notes.id) as note_count') + .each do |item| + h[item.commit_id] = item.note_count.to_i + end + h end |