diff --git a/ui/pager.go b/ui/pager.go index f2f6c99..50806b1 100644 --- a/ui/pager.go +++ b/ui/pager.go @@ -486,7 +486,6 @@ func stashDocument(cc *charm.Client, md markdown) tea.Cmd { // We really just need to know the ID so we can operate on this newly // stashed markdown. md.ID = newMd.ID - return stashSuccessMsg(md) } } diff --git a/ui/ui.go b/ui/ui.go index c932ea5..31a9d05 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -54,9 +54,6 @@ type errMsg error type newCharmClientMsg *charm.Client type sshAuthErrMsg struct{} type keygenFailedMsg struct{ err error } - -func (k keygenFailedMsg) Error() string { return k.err.Error() } - type keygenSuccessMsg struct{} type initLocalFileSearchMsg struct { cwd string @@ -66,15 +63,13 @@ type foundLocalFileMsg gitcha.SearchResult type localFileSearchFinished struct{} type gotStashMsg []*charm.Markdown type stashLoadErrMsg struct{ err error } - -func (s stashLoadErrMsg) Error() string { return s.err.Error() } - type gotNewsMsg []*charm.Markdown +type statusMessageTimeoutMsg applicationContext type newsLoadErrMsg struct{ err error } -func (s newsLoadErrMsg) Error() string { return s.err.Error() } - -type statusMessageTimeoutMsg applicationContext +func (k keygenFailedMsg) Error() string { return k.err.Error() } +func (s stashLoadErrMsg) Error() string { return s.err.Error() } +func (s newsLoadErrMsg) Error() string { return s.err.Error() } // MODEL