Avoid triggering recovery mechanism when cancelling issue/pr create

This commit is contained in:
Mislav Marohnić 2021-02-23 19:42:41 +01:00
parent b0b90afa87
commit fff051468e
2 changed files with 4 additions and 4 deletions

View file

@ -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 == "" {

View file

@ -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)