summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 12:10:14 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 12:10:14 +0000
commit030dbc721802fc3a01541e21839133ce11bbeffc (patch)
treeed44e48a911b707f3bd09cdebfb52f94013f99bb /lib/redmine
parent1ae761d169be11411fdc08b7df6805438a167432 (diff)
downloadredmine-030dbc721802fc3a01541e21839133ce11bbeffc.tar.gz
redmine-030dbc721802fc3a01541e21839133ce11bbeffc.zip
code cleanup: rubocop: fix Performance/RedundantBlockCall in lib/redmine/views/builders/structure.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18813 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/views/builders/structure.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/views/builders/structure.rb b/lib/redmine/views/builders/structure.rb
index e37d3b86b..99db94be2 100644
--- a/lib/redmine/views/builders/structure.rb
+++ b/lib/redmine/views/builders/structure.rb
@@ -32,7 +32,7 @@ module Redmine
def array(tag, options={}, &block)
@struct << []
- block.call(self)
+ yield(self)
ret = @struct.pop
@struct.last[tag] = ret
@struct.last.merge!(options) if options
@@ -72,7 +72,7 @@ module Redmine
if block
@struct << (args.first.is_a?(Hash) ? args.first : {})
- block.call(self)
+ yield(self)
ret = @struct.pop
if @struct.last.is_a?(Array)
@struct.last << ret