diff --git a/go/08_stack/StackBasedOnLinkedList.go b/go/08_stack/StackBasedOnLinkedList.go index ef4fef4..4101c9e 100644 --- a/go/08_stack/StackBasedOnLinkedList.go +++ b/go/08_stack/StackBasedOnLinkedList.go @@ -20,10 +20,7 @@ func NewLinkedListStack() *LinkedListStack { } func (this *LinkedListStack) IsEmpty() bool { - if this.topNode == nil { - return true - } - return false + return this.topNode == nil } func (this *LinkedListStack) Push(v interface{}) {