mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
fix: address verified review findings (misc-1)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
2 files changed
+17
-1
No files matched your search
@@ -95,7 +95,11 @@ func (a *application) notificationCommand() *cobra.Command {
|
||||
return s.Mark(cmd.Context(), id, mark.status)
|
||||
}, func(item services.Notification) string { return fmt.Sprintf(mark.done, notificationLabel(item)) })
|
||||
}
|
||||
what := notificationsWith(filters) + " " + s.where
|
||||
what := notificationsWith(filters)
|
||||
if !until.IsZero() {
|
||||
what += " updated before " + until.Format("2006-01-02 15:04")
|
||||
}
|
||||
what += " " + s.where
|
||||
if a.canPrompt() {
|
||||
if err := a.confirmAction(cmd, terminal.Confirmation{Prompt: fmt.Sprintf(mark.ask, what), DefaultYes: true}); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user