1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

Remove unnecessary disabling of RuboCop Rails/Pluck (#37248).

git-svn-id: https://svn.redmine.org/redmine/trunk@21930 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2022-10-29 07:42:03 +00:00
parent 9daaa5eae5
commit 5817752289

View 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)