Skip to content

Commit 3bf6c37

Browse files
committed
remove useless break statements
1 parent af1b796 commit 3bf6c37

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cli/completion/completion.go

-4
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,15 @@ func runCompletionCommand(cmd *cobra.Command, args []string) {
5454
switch args[0] {
5555
case "bash":
5656
cmd.Root().GenBashCompletionV2(os.Stdout, !completionNoDesc)
57-
break
5857
case "zsh":
5958
if completionNoDesc {
6059
cmd.Root().GenZshCompletionNoDesc(os.Stdout)
6160
} else {
6261
cmd.Root().GenZshCompletion(os.Stdout)
6362
}
64-
break
6563
case "fish":
6664
cmd.Root().GenFishCompletion(os.Stdout, !completionNoDesc)
67-
break
6865
case "powershell":
6966
cmd.Root().GenPowerShellCompletion(os.Stdout)
70-
break
7167
}
7268
}

0 commit comments

Comments
 (0)