mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Fix RuboCop offense Style/RedundantParentheses (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@21707 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7a5f7fe003
commit
c4f94b503e
@ -157,7 +157,7 @@ module IssuesHelper
|
||||
|
||||
# Renders relations stats (total relations (open - closed)) with query links
|
||||
def render_relations_stats(issue, relations)
|
||||
open_relations = relations.count{|r| (r.other_issue(issue).closed?)==false}
|
||||
open_relations = relations.count{|r| r.other_issue(issue).closed? == false}
|
||||
closed_relations = relations.count{|r| r.other_issue(issue).closed?}
|
||||
render_issues_stats(open_relations, closed_relations, {:issue_id => relations.map{|r| r.other_issue(issue).id}.join(',')})
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user