diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 12:16:56 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 12:16:56 +0000 |
commit | 71b8608421b88161df79058d2d95dba39edd3ada (patch) | |
tree | e1ec5781b425f9a92b923e2b13e03a8cba2d4187 /test | |
parent | 030dbc721802fc3a01541e21839133ce11bbeffc (diff) | |
download | redmine-71b8608421b88161df79058d2d95dba39edd3ada.tar.gz redmine-71b8608421b88161df79058d2d95dba39edd3ada.zip |
code cleanup: rubocop: fix Performance/RedundantBlockCall in test/functional/repositories_git_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18814 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/repositories_git_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index fbb9e69dc..a8c89eb39 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -689,7 +689,7 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest def with_cache(&block) before = ActionController::Base.perform_caching ActionController::Base.perform_caching = true - block.call + yield ActionController::Base.perform_caching = before end end |