mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 11:09:17 -07:00
chore: clean up linter errors in examples
This commit is contained in:
@@ -37,7 +37,6 @@ func (m model) Init() tea.Cmd {
|
||||
|
||||
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
switch msg := msg.(type) {
|
||||
|
||||
case tea.KeyMsg:
|
||||
switch msg.String() {
|
||||
case "q", "ctrl+c", "esc":
|
||||
@@ -77,5 +76,7 @@ func checkServer() tea.Msg {
|
||||
if err != nil {
|
||||
return errMsg{err}
|
||||
}
|
||||
defer res.Body.Close()
|
||||
|
||||
return statusMsg(res.StatusCode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user