all: use "len == 0" rather than "len <= 0" when checking empty slice/string (#3439)

This commit is contained in:
gocurr
2023-07-14 02:30:32 +08:00
committed by GitHub
parent 0e3cae9dc9
commit 8023fa956e
12 changed files with 17 additions and 17 deletions

View File

@ -865,7 +865,7 @@ func TestClientServer_traceContinue(t *testing.T) {
t.Fatalf("No goroutine information")
}
if len(bpi.Stacktrace) <= 0 {
if len(bpi.Stacktrace) == 0 {
t.Fatalf("No stacktrace\n")
}