diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 12:40:22 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 12:40:22 +0000 |
commit | a49307b00213a5c4f823aaf3ebceb144e749a12d (patch) | |
tree | 46d64adc0a4451ea8e15bf40046e5a5042946921 /lib/redmine | |
parent | 3efe67f14d139d818b576f514fc1f865a923cf7e (diff) | |
download | redmine-a49307b00213a5c4f823aaf3ebceb144e749a12d.tar.gz redmine-a49307b00213a5c4f823aaf3ebceb144e749a12d.zip |
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
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/views/builders.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/views/builders.rb b/lib/redmine/views/builders.rb index 862af510b..2e04026ac 100644 --- a/lib/redmine/views/builders.rb +++ b/lib/redmine/views/builders.rb @@ -31,7 +31,7 @@ module Redmine else raise "No builder for format #{format}" end - if block + if block_given? block.call(builder) else builder |