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:
parent
d845f8ad22
commit
00820109e9
@ -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:
|
||||
|
||||
@ -33,7 +33,7 @@ module Redmine
|
||||
raise "No builder for format #{format}"
|
||||
end
|
||||
if block_given?
|
||||
block.call(builder)
|
||||
yield(builder)
|
||||
else
|
||||
builder
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user