summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-08-23 09:05:20 +0000
committerGo MAEDA <maeda@farend.jp>2023-08-23 09:05:20 +0000
commit21a6fc71d6806dc74e087de4cbf7b4acf3b8a3ba (patch)
tree5e205ca3488eb4301266fcdbccfde2a444be0e33 /app/controllers/repositories_controller.rb
parent86c5d7814f4c3e860e449cdda05717984ca21405 (diff)
downloadredmine-21a6fc71d6806dc74e087de4cbf7b4acf3b8a3ba.tar.gz
redmine-21a6fc71d6806dc74e087de4cbf7b4acf3b8a3ba.zip
Fix RuboCop offense Performance/MapMethodChain (#37247).
git-svn-id: https://svn.redmine.org/redmine/trunk@22280 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index 9ef62edd1..8ecb0022f 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -66,7 +66,7 @@ class RepositoriesController < ApplicationController
def committers
@committers = @repository.committers
@users = @project.users.to_a
- additional_user_ids = @committers.collect(&:last).collect(&:to_i) - @users.collect(&:id)
+ additional_user_ids = @committers.collect {|c| c.last.to_i} - @users.collect(&:id)
@users += User.where(:id => additional_user_ids).to_a unless additional_user_ids.empty?
@users.compact!
@users.sort!