summaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-01-11 13:20:52 +0000
committerGo MAEDA <maeda@farend.jp>2023-01-11 13:20:52 +0000
commit3942177f49002d50aa65f803be85167d845675dd (patch)
tree42fae6f20931876145545c007cb21ddd98ee71cc /app/controllers/application_controller.rb
parent3eb364e45ae11c681677d7b9e3fd13f88d5b1d6b (diff)
downloadredmine-3942177f49002d50aa65f803be85167d845675dd.tar.gz
redmine-3942177f49002d50aa65f803be85167d845675dd.zip
Fix RuboCop offense Performance/BlockGivenWithExplicitBlock (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22027 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index d400bdca8..4382bb3bc 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -552,7 +552,7 @@ class ApplicationController < ActionController::Base
else
if args.any?
redirect_to *args
- elsif block_given?
+ elsif block
yield
else
raise "#redirect_to_referer_or takes arguments or a block"