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:
@ -292,7 +292,7 @@ func (scope *EvalScope) Locals(flags localsFlags) ([]*Variable, error) {
|
||||
depths = append(depths, depth)
|
||||
}
|
||||
|
||||
if len(vars) <= 0 {
|
||||
if len(vars) == 0 {
|
||||
return vars, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user