]> source.dussan.org Git - redmine.git/commitdiff
Remove unnecessary disabling of RuboCop Rails/Pluck (#37248).
authorGo MAEDA <maeda@farend.jp>
Sat, 29 Oct 2022 07:42:03 +0000 (07:42 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 29 Oct 2022 07:42:03 +0000 (07:42 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@21930 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/git.rb

index a19f38f2a606fd41d5d229784f0ad9ed13c6bdae..bd160b3e5a55f3363e42565aa4b6711a82f162db 100644 (file)
@@ -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)