Simplify nil check for slice

len() for nil slices is defined as zero (gosimple)
This commit is contained in:
Anatoli Babenia 2019-12-26 13:22:48 +03:00 committed by GitHub
parent bf7dd663c1
commit 20ec5cf2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}