Avoid triggering recovery mechanism when cancelling issue/pr create
This commit is contained in:
parent
b0b90afa87
commit
fff051468e
2 changed files with 4 additions and 4 deletions
|
|
@ -249,8 +249,8 @@ func createRun(opts *CreateOptions) (err error) {
|
|||
|
||||
if action == prShared.CancelAction {
|
||||
fmt.Fprintln(opts.IO.ErrOut, "Discarding.")
|
||||
err = cmdutil.SilentError
|
||||
return
|
||||
err = nil // avoid triggering PreserveInput
|
||||
return cmdutil.SilentError
|
||||
}
|
||||
} else {
|
||||
if tb.Title == "" {
|
||||
|
|
|
|||
|
|
@ -299,8 +299,8 @@ func createRun(opts *CreateOptions) (err error) {
|
|||
|
||||
if action == shared.CancelAction {
|
||||
fmt.Fprintln(opts.IO.ErrOut, "Discarding.")
|
||||
err = cmdutil.SilentError
|
||||
return
|
||||
err = nil // avoid triggering PreserveInput
|
||||
return cmdutil.SilentError
|
||||
}
|
||||
|
||||
err = handlePush(*opts, *ctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue