Skip to content

Commit aeab9b4

Browse files
committed
clean code
1 parent 28cab47 commit aeab9b4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/0020_valid_parentheses/valid_parentheses.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,5 @@ func isValid(s string) bool {
5959
stacks = append(stacks, char)
6060
}
6161
}
62-
if len(stacks) > 0 {
63-
return false
64-
}
65-
return true
62+
return len(stacks) == 0
6663
}

0 commit comments

Comments
 (0)