summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-23 19:43:58 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-23 19:50:31 +0200
commit17eaecd6c7cb33d0f171ae10da190fa120a817f3 (patch)
treec8eac4d6aa1c9dfa849af6ccd787dc87de3f3cc2 /app/models
parentbc806831e818b6e1ec2d1ae81221126f03c01f11 (diff)
downloadgitlab-ce-17eaecd6c7cb33d0f171ae10da190fa120a817f3.tar.gz
Enable Style/InfiniteLoop Rubocop copcomplexity/rubocop-style-loop
Diffstat (limited to 'app/models')
-rw-r--r--app/models/network/graph.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/network/graph.rb b/app/models/network/graph.rb
index f4e90125373..9259cb1a0fa 100644
--- a/app/models/network/graph.rb
+++ b/app/models/network/graph.rb
@@ -253,7 +253,7 @@ module Network
leaves = []
leaves.push(commit) if commit.space.zero?
- while true
+ loop do
return leaves if commit.parents(@map).count.zero?
commit = commit.parents(@map).first