Remove unused variable

This commit is contained in:
Christian Rocha 2020-08-13 15:26:34 -04:00 committed by Christian Muehlhaeuser
commit 3d5d203217

View file

@ -347,16 +347,12 @@ func view(mdl tea.Model) string {
return errorView(m.fatalErr, true)
}
var s string
switch m.state {
case stateShowStash:
return stashView(m.stash)
case stateShowDocument:
return pagerView(m.pager)
default:
return stashView(m.stash)
}
return "\n" + indent(s, 2)
}
func errorView(err error, fatal bool) string {