Skip to content

Commit

Permalink
Merge pull request ManageIQ#6979 from skateman/nodes-reverse-postcheck
Browse files Browse the repository at this point in the history
Fix TreeBuilder#post_check to actually reverse! the nodes
  • Loading branch information
h-kataria authored Apr 14, 2020
2 parents f829ace + c302fa1 commit 5942e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/tree_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def post_check(tree)
end

# Process nodes top-to-bottom
nodes.reverse
nodes.reverse!
while nodes.any?
parent = nodes.pop

Expand Down

0 comments on commit 5942e8e

Please sign in to comment.