mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix: address verified review findings (terminal-forms-1)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
21 files changed
+329
-53
No files matched your search
@@ -118,7 +118,12 @@ func (a *application) promptComment(cmd *cobra.Command, initial string) (string,
|
||||
return draft.Body, draft, err
|
||||
}
|
||||
body, err := a.deps.Prompter.AskText(cmd.Context(), commentTitle, initial)
|
||||
return body, terminal.Draft{}, err
|
||||
if err != nil {
|
||||
return body, terminal.Draft{}, err
|
||||
}
|
||||
draft := keepDraft(body)
|
||||
draft.Body = body
|
||||
return body, draft, nil
|
||||
}
|
||||
|
||||
// commentOn creates a comment on n, reporting it like gh: its URL on stdout, or JSON.
|
||||
|
||||
Reference in new issue
Block a user