use "if block_given?" instead of "if block" in lib/redmine/views/builders.rb (#32308)

git-svn-id: http://svn.redmine.org/redmine/trunk@18816 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-10-22 12:40:22 +00:00
parent 3efe67f14d
commit a49307b002

View File

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