Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-22 04:02:23 +0300
committerDouwe Maan <douwe@selenight.nl>2017-02-23 18:31:57 +0300
commit8a4d68c53e9c58ad7f8dce1494f7976292b2f929 (patch)
tree773814f7079c626cafabc229f929cafbe4d4b2e7 /app/models/network
parent7ea641b6d0882fc782a7eb493daf8b66d076924b (diff)
Enable Style/ConditionalAssignment
Diffstat (limited to 'app/models/network')
-rw-r--r--app/models/network/graph.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/network/graph.rb b/app/models/network/graph.rb
index b16ecc424dd..b859d40da24 100644
--- a/app/models/network/graph.rb
+++ b/app/models/network/graph.rb
@@ -188,10 +188,10 @@ module Network
end
# and mark it as reserved
- if parent_time.nil?
- min_time = leaves.first.time
+ min_time = if parent_time.nil?
+ leaves.first.time
else
- min_time = parent_time + 1
+ parent_time + 1
end
max_time = leaves.last.time