summaryrefslogtreecommitdiff
path: root/internal/client/tui/finishedmsg.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-08-03 14:09:21 +0300
committerPaul Buetow <paul@buetow.org>2024-08-03 14:09:21 +0300
commit5664c4ad14fca54a42356541847e6ae3f9613a87 (patch)
tree297757ae2f4038dd649513c40e28f80f755c8690 /internal/client/tui/finishedmsg.go
parenta10d20b6ce8e462aa1b5c5ffb3ce17111e4faf64 (diff)
can compose and submit in one go
Diffstat (limited to 'internal/client/tui/finishedmsg.go')
-rw-r--r--internal/client/tui/finishedmsg.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/client/tui/finishedmsg.go b/internal/client/tui/finishedmsg.go
index c475ce7..dca703f 100644
--- a/internal/client/tui/finishedmsg.go
+++ b/internal/client/tui/finishedmsg.go
@@ -3,8 +3,8 @@ package tui
import tea "github.com/charmbracelet/bubbletea"
type finishedMsg struct {
- cb func() error
- err error
+ cb func() error
+ err error
}
func (f finishedMsg) Error() string {
@@ -14,8 +14,8 @@ func (f finishedMsg) Error() string {
func finished(cb func() error, err error) tea.Cmd {
return func() tea.Msg {
return finishedMsg{
- cb: cb,
- err: err,
+ cb: cb,
+ err: err,
}
}
}