summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 12:40:11 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 12:40:11 +0000
commit3efe67f14d139d818b576f514fc1f865a923cf7e (patch)
tree770a718f2ab2fb78efbb0c7583837bf0f71947ce /lib/redmine
parent71b8608421b88161df79058d2d95dba39edd3ada (diff)
downloadredmine-3efe67f14d139d818b576f514fc1f865a923cf7e.tar.gz
redmine-3efe67f14d139d818b576f514fc1f865a923cf7e.zip
use "if block_given?" instead of "if block" in lib/redmine/views/builders/structure.rb (#32308)
git-svn-id: http://svn.redmine.org/redmine/trunk@18815 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/views/builders/structure.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/redmine/views/builders/structure.rb b/lib/redmine/views/builders/structure.rb
index 99db94be2..3a2ae544a 100644
--- a/lib/redmine/views/builders/structure.rb
+++ b/lib/redmine/views/builders/structure.rb
@@ -69,8 +69,7 @@ module Redmine
end
end
end
-
- if block
+ if block_given?
@struct << (args.first.is_a?(Hash) ? args.first : {})
yield(self)
ret = @struct.pop