diff --git a/commands/genautocomplete.go b/commands/genautocomplete.go index c4e89dd96..c725f7792 100644 --- a/commands/genautocomplete.go +++ b/commands/genautocomplete.go @@ -53,9 +53,10 @@ or just source them in directly: if err != nil { return err - } else { - jww.FEEDBACK.Println("Bash completion file for Hugo saved to", autocompleteTarget) } + + jww.FEEDBACK.Println("Bash completion file for Hugo saved to", autocompleteTarget) + return nil }, }