summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-24 05:20:58 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-24 05:20:58 +0000
commit7272399dc94308f31147347323bcb406a97edb2b (patch)
tree2b16fcb9562e558bb6ce3d000ed597bbd43cd3c7 /app
parent4c9bef2ace620ed7ee0b4db8274242a3c974b2af (diff)
downloadredmine-7272399dc94308f31147347323bcb406a97edb2b.tar.gz
redmine-7272399dc94308f31147347323bcb406a97edb2b.zip
code cleanup: rubocop: fix Style/ParenthesesAroundCondition in app/helpers/issues_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18513 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/issues_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 10c179550..0cc779bac 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -24,7 +24,7 @@ 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 +35,7 @@ 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