Skip to content

Commit 82acfc9

Browse files
committed
Switching map to a switch
1 parent feeb06c commit 82acfc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cli/cmd/release_create.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ Prepared to create release with defaults:
184184
if err != nil {
185185
return err
186186
}
187-
switch strings.ToLower(confirmed) {
188-
case "n", "N":
187+
if strings.ToLower(confirmed) == "n" {
189188
return errors.New("configuration declined")
190189
}
191190
fmt.Printf("You can use the --confirm-auto or -y flag in the future to skip this prompt.\n")

0 commit comments

Comments
 (0)