Add lint to CI and pre-commit

This commit is contained in:
Tulir Asokan
2022-04-15 13:13:46 +03:00
parent c9633c095d
commit 7425bc25d9
5 changed files with 70 additions and 3 deletions

View File

@ -60,7 +60,7 @@ func autocompleteFile(cmd *CommandAutocomplete) (completions []string, newText s
func autocompleteToggle(cmd *CommandAutocomplete) (completions []string, newText string) {
completions = make([]string, 0, len(toggleMsg))
for k := range toggleMsg {
if (strings.HasPrefix(k, cmd.RawArgs)) {
if strings.HasPrefix(k, cmd.RawArgs) {
completions = append(completions, k)
}
}