diff options
author | Go MAEDA <maeda@farend.jp> | 2022-07-16 09:14:38 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-07-16 09:14:38 +0000 |
commit | c4f94b503ebec74889625e7585546317a406ba1c (patch) | |
tree | 59651bb7fa352ffe79602d0a4d1be9684f906529 /app/helpers/issues_helper.rb | |
parent | 7a5f7fe003d87e6d4d1a76949b3c1cb620cca87f (diff) | |
download | redmine-c4f94b503ebec74889625e7585546317a406ba1c.tar.gz redmine-c4f94b503ebec74889625e7585546317a406ba1c.zip |
Fix RuboCop offense Style/RedundantParentheses (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@21707 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index a64aca0e3..3881fbe9e 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -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 |