1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-30 04:09:38 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-10-22 12:16:56 +00:00
parent 030dbc7218
commit 71b8608421
2 changed files with 1 additions and 2 deletions

View File

@ -530,7 +530,6 @@ Performance/FixedSize:
Performance/RedundantBlockCall:
Exclude:
- 'app/controllers/application_controller.rb'
- 'test/functional/repositories_git_controller_test.rb'
# Cop supports --auto-correct.
Performance/RedundantMatch:

View File

@ -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