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
This commit is contained in:
Toshi MARUYAMA
2019-09-24 05:21:09 +00:00
parent 7272399dc9
commit a405e8f950
2 changed files with 4 additions and 3 deletions

View File

@@ -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