mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
all: use "len == 0" rather than "len <= 0" when checking empty slice/string (#3439)
This commit is contained in:
@ -83,7 +83,7 @@ func firstPCAfterPrologueDisassembly(p Process, fn *Function, sameline bool) (ui
|
||||
return fn.Entry, err
|
||||
}
|
||||
|
||||
if len(text) <= 0 {
|
||||
if len(text) == 0 {
|
||||
return fn.Entry, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user