fix some TODOs

This commit is contained in:
vilmibm 2020-01-15 12:35:28 -06:00
parent 7bbd70d6b2
commit 32461284cc
2 changed files with 3 additions and 3 deletions

View file

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

View file

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