1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Fix RuboCop offense Style/ArgumentsForwarding (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@22612 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2024-01-18 01:31:55 +00:00
parent 77ec59cd50
commit c452f00763

View File

@ -367,9 +367,9 @@ module Redmine
@children.inject(1) {|sum, node| sum + node.size}
end
def each(&block)
def each(...)
yield self
children {|child| child.each(&block)}
children {|child| child.each(...)}
end
# Adds a child at first position