mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-22 08:04:18 +02:00
Remove unused variable
This commit is contained in:
parent
2ed9e71533
commit
3d5d203217
1 changed files with 2 additions and 6 deletions
8
ui/ui.go
8
ui/ui.go
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue