mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 03:56:24 +08:00
all: use "len == 0" rather than "len <= 0" when checking empty slice/string (#3439)
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user