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:
parent
030dbc7218
commit
71b8608421
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user