fix some TODOs
This commit is contained in:
parent
7bbd70d6b2
commit
32461284cc
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue