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

@@ -22,6 +22,8 @@ func checkServer() tea.Msg {
if err != nil {
return errMsg{err}
}
defer res.Body.Close()
return statusMsg(res.StatusCode)
}
@@ -39,7 +41,6 @@ func (m model) Init() tea.Cmd {
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case statusMsg:
m.status = int(msg)
return m, tea.Quit