diff options
author | Robert Speicher <robert@gitlab.com> | 2016-06-29 19:50:08 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-06-29 19:50:08 +0000 |
commit | 84113d7e725dcf6f9a3945853475f0cede957fec (patch) | |
tree | 95d82e602ffe0f52d2e7b579f167ffaaa55d5e9c /app/models/network/graph.rb | |
parent | 722a6c533a33265214b993122167ff5398e198ea (diff) | |
parent | 28bafd5354427d27cabe40966bd069a75984e2b1 (diff) | |
download | gitlab-ce-84113d7e725dcf6f9a3945853475f0cede957fec.tar.gz |
Merge branch 'rubocop/enable-space-after-cops' into 'master'
Enable Style/SpaceAfterComma and Colon Rubocop cops
See #17478
See merge request !4991
Diffstat (limited to 'app/models/network/graph.rb')
-rw-r--r-- | app/models/network/graph.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/network/graph.rb b/app/models/network/graph.rb index a2aee2f925b..345041a6ad1 100644 --- a/app/models/network/graph.rb +++ b/app/models/network/graph.rb @@ -54,7 +54,7 @@ module Network @map = {} @reserved = {} - @commits.each_with_index do |c,i| + @commits.each_with_index do |c, i| c.time = i days[i] = c.committed_date @map[c.id] = c @@ -116,7 +116,7 @@ module Network end def commits_sort_by_ref - @commits.sort do |a,b| + @commits.sort do |a, b| if include_ref?(a) -1 elsif include_ref?(b) |