Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed Jul 23, 2023
1 parent b57942d commit 3e12a66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ func (s *stack) pop() *Node {
return nil
}

n := s.nodes.Remove(tmp)
return n.(*Node)
return s.nodes.Remove(tmp).(*Node)
}

func (s *stack) size() int {
Expand Down

0 comments on commit 3e12a66

Please sign in to comment.