Skip to content

Commit

Permalink
chore: slice replace loop
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Jul 6, 2023
1 parent ce93835 commit 40e2f4f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions d2oracle/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ func GetObjOrder(g *d2graph.Graph, boardPath []string) ([]string, error) {
if curr != g.Root {
order = append(order, curr.AbsID())
}
for _, ch := range curr.ChildrenArray {
queue = append(queue, ch)
}
queue = append(queue, curr.ChildrenArray...)
}

return order, nil
Expand Down

0 comments on commit 40e2f4f

Please sign in to comment.