Skip to content

Commit

Permalink
Simplify nil check for slice
Browse files Browse the repository at this point in the history
len() for nil slices is defined as zero (gosimple)
  • Loading branch information
abitrolly authored Dec 26, 2019
1 parent bf7dd66 commit 20ec5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/ui/key/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 20ec5cf

Please sign in to comment.