From: Go MAEDA Date: Sat, 16 Jul 2022 09:14:38 +0000 (+0000) Subject: Fix RuboCop offense Style/RedundantParentheses (#36919). X-Git-Tag: 5.1.0~517 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c4f94b503ebec74889625e7585546317a406ba1c;p=redmine.git Fix RuboCop offense Style/RedundantParentheses (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@21707 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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