summaryrefslogtreecommitdiff
path: root/internal/client/tui/finishedmsg.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-07-28 23:11:17 +0300
committerPaul Buetow <paul@buetow.org>2024-07-28 23:11:17 +0300
commitd1a76d38823e2ada4eb30e175a17471550017900 (patch)
treef681eb0850fe133a8633dc7531792da621d9521f /internal/client/tui/finishedmsg.go
parentc4454028242e384927d74bf32ae6230be52f8119 (diff)
refactor
Diffstat (limited to 'internal/client/tui/finishedmsg.go')
-rw-r--r--internal/client/tui/finishedmsg.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/client/tui/finishedmsg.go b/internal/client/tui/finishedmsg.go
index 6f702f3..c475ce7 100644
--- a/internal/client/tui/finishedmsg.go
+++ b/internal/client/tui/finishedmsg.go
@@ -3,7 +3,7 @@ package tui
import tea "github.com/charmbracelet/bubbletea"
type finishedMsg struct {
- callback func() error
+ cb func() error
err error
}
@@ -11,10 +11,10 @@ func (f finishedMsg) Error() string {
return f.err.Error()
}
-func finished(callback func() error, err error) tea.Cmd {
+func finished(cb func() error, err error) tea.Cmd {
return func() tea.Msg {
return finishedMsg{
- callback: callback,
+ cb: cb,
err: err,
}
}