From: Go MAEDA Date: Sat, 29 Oct 2022 07:42:03 +0000 (+0000) Subject: Remove unnecessary disabling of RuboCop Rails/Pluck (#37248). X-Git-Tag: 5.1.0~361 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5817752289cd4e8fa30ac8375935e94f2f94d538;p=redmine.git Remove unnecessary disabling of RuboCop Rails/Pluck (#37248). git-svn-id: https://svn.redmine.org/redmine/trunk@21930 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index a19f38f2a..bd160b3e5 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -232,7 +232,7 @@ class Repository::Git < Repository def heads_from_branches_hash h = extra_info&.dup || {} h["branches"] ||= {} - h['branches'].map{|br, hs| hs['last_scmid']} # rubocop:disable Rails/Pluck + h['branches'].map{|br, hs| hs['last_scmid']} end def latest_changesets(path, rev, limit=10)