summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.rubocop_todo.yml5
-rw-r--r--app/controllers/application_controller.rb2
2 files changed, 1 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 14e1519ce..24d070e6d 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -527,11 +527,6 @@ Performance/FixedSize:
- 'test/integration/attachments_test.rb'
# Cop supports --auto-correct.
-Performance/RedundantBlockCall:
- Exclude:
- - 'app/controllers/application_controller.rb'
-
-# Cop supports --auto-correct.
Performance/RedundantMatch:
Exclude:
- 'app/models/issue_relation.rb'
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 06e2d702c..02612e36f 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -486,7 +486,7 @@ class ApplicationController < ActionController::Base
if args.any?
redirect_to *args
elsif block_given?
- block.call
+ yield
else
raise "#redirect_to_referer_or takes arguments or a block"
end