1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-05 07:01:30 +00:00

code cleanup: rubocop: fix Performance/RedundantBlockCall in lib/redmine/views/builders.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18819 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-22 12:40:57 +00:00
parent d845f8ad22
commit 00820109e9
2 changed files with 1 additions and 2 deletions

View File

@ -531,7 +531,6 @@ Performance/RedundantBlockCall:
Exclude:
- 'app/controllers/application_controller.rb'
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
- 'lib/redmine/views/builders.rb'
# Cop supports --auto-correct.
Performance/RedundantMatch:

View File

@ -33,7 +33,7 @@ module Redmine
raise "No builder for format #{format}"
end
if block_given?
block.call(builder)
yield(builder)
else
builder
end