summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 15:54:12 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 15:54:12 +0000
commit790d2bae705fa5762c7cc520c78d927e8a5afea6 (patch)
treefd56cba3e44a739958b15a5fdd4697db13dc33cb /app
parentf4522aeba7069d8cb9c14b0a0b7084a377ffafe7 (diff)
downloadredmine-790d2bae705fa5762c7cc520c78d927e8a5afea6.tar.gz
redmine-790d2bae705fa5762c7cc520c78d927e8a5afea6.zip
code cleanup: rubocop: fix Style/ParenthesesAroundCondition in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18832 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 948eac1f8..9568a5b85 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -868,8 +868,8 @@ class Project < ActiveRecord::Base
ancestors = projects.first.ancestors.to_a
end
projects.sort_by(&:lft).each do |project|
- while (ancestors.any? &&
- !project.is_descendant_of?(ancestors.last))
+ while ancestors.any? &&
+ !project.is_descendant_of?(ancestors.last)
ancestors.pop
end
yield project, ancestors.size