From a405e8f9507e5a15b48001b35097814d34d40af3 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 24 Sep 2019 05:21:09 +0000 Subject: code cleanup: rubocop: fix Style/WhileUntilModifier in app/helpers/issues_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18514 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/helpers') diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 0cc779bac..df777d7e2 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -24,7 +24,8 @@ module IssuesHelper def issue_list(issues, &block) ancestors = [] issues.each do |issue| - while ancestors.any? && !issue.is_descendant_of?(ancestors.last) + while ancestors.any? && + !issue.is_descendant_of?(ancestors.last) ancestors.pop end yield issue, ancestors.size @@ -35,7 +36,8 @@ module IssuesHelper def grouped_issue_list(issues, query, &block) ancestors = [] grouped_query_results(issues, query) do |issue, group_name, group_count, group_totals| - while ancestors.any? && !issue.is_descendant_of?(ancestors.last) + while ancestors.any? && + !issue.is_descendant_of?(ancestors.last) ancestors.pop end yield issue, ancestors.size, group_name, group_count, group_totals -- cgit v1.2.3