Simplify nil check for slice
len() for nil slices is defined as zero (gosimple)
This commit is contained in:
parent
bf7dd663c1
commit
20ec5cf2aa
@ -65,7 +65,7 @@ func NewBindingFromConfig(gui *gocui.Gui, influence string, configKeys []string,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if keys != nil && len(keys) > 0 {
|
||||
if len(keys) > 0 {
|
||||
parsedKeys = keys
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user