Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e642f72

Browse files
committed
remove useless break statements
1 parent 8ff498b commit e642f72

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

‎cli/completion/completion.go‎

Lines changed: 0 additions & 4 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /