summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-24 05:21:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-24 05:21:09 +0000
commita405e8f9507e5a15b48001b35097814d34d40af3 (patch)
tree68352fd6da8ca9e316663339939597597236a8c7 /app/helpers
parent7272399dc94308f31147347323bcb406a97edb2b (diff)
downloadredmine-a405e8f9507e5a15b48001b35097814d34d40af3.tar.gz
redmine-a405e8f9507e5a15b48001b35097814d34d40af3.zip
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
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/issues_helper.rb6
1 files changed, 4 insertions, 2 deletions
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