From d1a76d38823e2ada4eb30e175a17471550017900 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 28 Jul 2024 23:11:17 +0300 Subject: refactor --- internal/client/tui/compose.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/client/tui/compose.go') diff --git a/internal/client/tui/compose.go b/internal/client/tui/compose.go index 3148b2a..4672462 100644 --- a/internal/client/tui/compose.go +++ b/internal/client/tui/compose.go @@ -28,10 +28,10 @@ func composeAction(conf config.ClientConfig, queue bool) tea.Cmd { }) } -func openEditor(editor, filePath string, callback func() error) tea.Cmd { +func openEditor(editor, filePath string, cb func() error) tea.Cmd { return tea.ExecProcess(exec.Command(editor, filePath), func(err error) tea.Msg { return finishedMsg{ - callback: callback, + cb: cb, err: err, } }) -- cgit v1.2.3