From 32461284cc044933dfd4d471f4a679f5576f19e2 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Wed, 15 Jan 2020 12:35:28 -0600 Subject: [PATCH] fix some TODOs --- command/issue.go | 4 ++-- command/pr_create.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/command/issue.go b/command/issue.go index 6abd2714b..853c0dcd6 100644 --- a/command/issue.go +++ b/command/issue.go @@ -323,7 +323,6 @@ func issueCreate(cmd *cobra.Command, args []string) error { interactive := title == "" || body == "" if interactive { - // TODO handle tb.Action tb, err := titleBodySurvey(cmd, title, body, templateFiles) if err != nil { return errors.Wrap(err, "could not collect title and/or body") @@ -332,7 +331,8 @@ func issueCreate(cmd *cobra.Command, args []string) error { action = tb.Action if tb.Action == CancelAction { - // TODO print something + fmt.Fprintln(cmd.ErrOrStderr(), "Discarding.") + return nil } diff --git a/command/pr_create.go b/command/pr_create.go index 122314b8f..b2b5caab3 100644 --- a/command/pr_create.go +++ b/command/pr_create.go @@ -98,7 +98,7 @@ func prCreate(cmd *cobra.Command, _ []string) error { action = tb.Action if action == CancelAction { - // TODO print about discarding + fmt.Fprintln(cmd.ErrOrStderr(), "Discarding.") return nil }