Attempt to cleanup the Msg grab bag formatting

This commit is contained in:
Christian Rocha 2020-08-21 16:10:39 -04:00 committed by Christian Muehlhaeuser
commit 0897472ca2
2 changed files with 4 additions and 10 deletions

View file

@ -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)
}
}

View file

@ -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