diff options
author | Go MAEDA <maeda@farend.jp> | 2023-01-11 13:30:25 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-01-11 13:30:25 +0000 |
commit | dbf8c1d921ce227d8fde88b62113a17fc8fe778d (patch) | |
tree | ad5860c05df0b0f6e0123604cc789d159b42f69c /lib/redmine/field_format.rb | |
parent | 1d3a76580f3eb732da45b99220cc8d64d277c535 (diff) | |
download | redmine-dbf8c1d921ce227d8fde88b62113a17fc8fe778d.tar.gz redmine-dbf8c1d921ce227d8fde88b62113a17fc8fe778d.zip |
Fix RuboCop offense Performance/RedundantEqualityComparisonBlock (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22031 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/field_format.rb')
-rw-r--r-- | lib/redmine/field_format.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |