mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
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
This commit is contained in:
parent
4c9bef2ace
commit
7272399dc9
@ -1424,7 +1424,6 @@ Style/ParenthesesAroundCondition:
|
||||
Exclude:
|
||||
- 'app/controllers/context_menus_controller.rb'
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/helpers/issues_helper.rb'
|
||||
- 'app/models/project.rb'
|
||||
- 'app/models/query.rb'
|
||||
- 'app/models/repository/subversion.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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user