Skip to content

Commit

Permalink
Merge pull request #46 from aidansteele/master
Browse files Browse the repository at this point in the history
Removed duplicate clone
  • Loading branch information
evolve75 committed Jan 31, 2015
2 parents 9ae506d + 8c79549 commit ceb23ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def each(&block) # :yields: node
if current # The node might be 'nil' (esp. for binary trees)
yield current # and process it
# Stack children of the current node at top of the stack
node_stack = current.children.clone.concat(node_stack)
node_stack = current.children.concat(node_stack)
end
end

Expand Down

0 comments on commit ceb23ef

Please sign in to comment.