From dbf8c1d921ce227d8fde88b62113a17fc8fe778d Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 11 Jan 2023 13:30:25 +0000 Subject: Fix RuboCop offense Performance/RedundantEqualityComparisonBlock (#38146). git-svn-id: https://svn.redmine.org/redmine/trunk@22031 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/field_format.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/redmine/field_format.rb') diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb index 789a1f9ae..55800dd6b 100644 --- a/lib/redmine/field_format.rb +++ b/lib/redmine/field_format.rb @@ -973,7 +973,7 @@ module Redmine attachment_present = true value = value.except(:blank) - if value.values.any? && value.values.all? {|v| v.is_a?(Hash)} + if value.values.any? && value.values.all?(Hash) value = value.values.first end -- cgit v1.2.3