Skip to content

Commit

Permalink
Auto corrected by following Lint Ruby Style/ExplicitBlockArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome Code committed Feb 20, 2021
1 parent 7ca36c0 commit 6a35d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/synvert/core/node_ext.rb
Expand Up @@ -321,11 +321,11 @@ def line
#
# @yield [child] Gives a child node.
# @yieldparam child [Parser::AST::Node] child node
def recursive_children
def recursive_children(&block)
children.each do |child|
if Parser::AST::Node === child
yield child
child.recursive_children { |c| yield c }
child.recursive_children(&block)
end
end
end
Expand Down

0 comments on commit 6a35d55

Please sign in to comment.