From 790d2bae705fa5762c7cc520c78d927e8a5afea6 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 22 Oct 2019 15:54:12 +0000 Subject: 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 --- app/models/project.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') 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 -- cgit v1.2.3