mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 20:23:41 +08:00
all: use "len == 0" rather than "len <= 0" when checking empty slice/string (#3439)
This commit is contained in:
@ -1414,7 +1414,7 @@ func (d *Debugger) Sources(filter string) ([]string, error) {
|
||||
}
|
||||
|
||||
func uniq(s []string) []string {
|
||||
if len(s) <= 0 {
|
||||
if len(s) == 0 {
|
||||
return s
|
||||
}
|
||||
src, dst := 1, 1
|
||||
|
||||
Reference in New Issue
Block a user