Skip to content

Commit b5c1de4

Browse files
committed
fix: make lint
1 parent d1914af commit b5c1de4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/cli/cmd/completion/completion.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,11 @@ func runCompletionBash(out io.Writer, boilerPlate string, cmd *cobra.Command) er
136136
}
137137

138138
func runCompletionZsh(out io.Writer, boilerPlate string, cmd *cobra.Command) error {
139-
// Add zsh completion header to specifiy the command to complete for zsh
139+
// Add zsh completion header to specify the command to complete for zsh
140140
zshHead := fmt.Sprintf("#compdef %[1]s\ncompdef _%[1]s %[1]s\n", cmd.Name())
141-
out.Write([]byte(zshHead))
141+
if _, err := out.Write([]byte(zshHead)); err != nil {
142+
return err
143+
}
142144

143145
if len(boilerPlate) == 0 {
144146
boilerPlate = defaultBoilerPlate

0 commit comments

Comments
 (0)