summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-10-29 07:42:03 +0000
committerGo MAEDA <maeda@farend.jp>2022-10-29 07:42:03 +0000
commit5817752289cd4e8fa30ac8375935e94f2f94d538 (patch)
treeb9c09e09694e9b13da7a6390fc54dfe2d29abc8f
parent9daaa5eae59c1809bcb883357388d9ec31f1f97c (diff)
downloadredmine-5817752289cd4e8fa30ac8375935e94f2f94d538.tar.gz
redmine-5817752289cd4e8fa30ac8375935e94f2f94d538.zip
Remove unnecessary disabling of RuboCop Rails/Pluck (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@21930 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/repository/git.rb2
1 files changed, 1 insertions, 1 deletions
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)