From 54ef6c8387b1e083c4891c188e0d84c79243347d Mon Sep 17 00:00:00 2001 From: Nguyen Phi Truong Date: Thu, 25 Jul 2024 02:32:09 +0700 Subject: [PATCH] fix typo (#4) --- cli/model.go | 4 ++-- cli/view.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/model.go b/cli/model.go index 6879456..d4965e5 100644 --- a/cli/model.go +++ b/cli/model.go @@ -51,7 +51,7 @@ func (m model) Init() tea.Cmd { return textarea.Blink } -func (m *model) getCommmandsList() []command { +func (m *model) getCommandsList() []command { if m.status == hosts.FocusStatusOn { return []command{commandFocusOff, commandConfigureBlacklist} } @@ -69,7 +69,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyMsg: - commands := m.getCommmandsList() + commands := m.getCommandsList() switch msg.String() { case "up", "k": diff --git a/cli/view.go b/cli/view.go index dc07bff..6f5dd0f 100644 --- a/cli/view.go +++ b/cli/view.go @@ -42,7 +42,7 @@ func (m model) View() string { } if m.state == menuView { - commands := m.getCommmandsList() + commands := m.getCommandsList() l := list.New().Enumerator(func(items list.Items, i int) string { if i == m.commandsListSelection {