chore: clean up linter errors in examples

This commit is contained in:
Christian Muehlhaeuser
2022-10-08 00:34:41 +02:00
parent 8b8fd12201
commit 22d15efad7
16 changed files with 26 additions and 40 deletions

View File

@@ -42,7 +42,7 @@ type model struct {
progress progress.Model
}
func (_ model) Init() tea.Cmd {
func (m model) Init() tea.Cmd {
return tickCmd()
}
@@ -79,10 +79,10 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
}
func (e model) View() string {
func (m model) View() string {
pad := strings.Repeat(" ", padding)
return "\n" +
pad + e.progress.View() + "\n\n" +
pad + m.progress.View() + "\n\n" +
pad + helpStyle("Press any key to quit")
}