From 5817752289cd4e8fa30ac8375935e94f2f94d538 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 29 Oct 2022 07:42:03 +0000 Subject: [PATCH] Remove unnecessary disabling of RuboCop Rails/Pluck (#37248). git-svn-id: https://svn.redmine.org/redmine/trunk@21930 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5