mirror of
https://github.com/redmine/redmine.git
synced 2026-07-07 17:13:29 +02: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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user