Skip to content

Commit 2e136fc

Browse files
Fix linter issues in tests
1 parent 68c6f0d commit 2e136fc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

internal/ui/install_app_list_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestInstallAppList_SelectKnownApp(t *testing.T) {
1515
require.NotNil(t, cmd)
1616

1717
// Menu emits MenuSelectMsg; feed it back to get the app list's own message
18-
list, cmd = list.Update(cmd().(MenuSelectMsg))
18+
_, cmd = list.Update(cmd().(MenuSelectMsg))
1919
require.NotNil(t, cmd)
2020

2121
msg := cmd()
@@ -32,7 +32,7 @@ func TestInstallAppList_SelectOther(t *testing.T) {
3232
list, cmd := list.Update(keyPressMsg("enter"))
3333
require.NotNil(t, cmd)
3434

35-
list, cmd = list.Update(cmd().(MenuSelectMsg))
35+
_, cmd = list.Update(cmd().(MenuSelectMsg))
3636
require.NotNil(t, cmd)
3737

3838
msg := cmd()
@@ -48,7 +48,7 @@ func TestInstallAppList_NavigateAndSelect(t *testing.T) {
4848
list, cmd := list.Update(keyPressMsg("enter"))
4949
require.NotNil(t, cmd)
5050

51-
list, cmd = list.Update(cmd().(MenuSelectMsg))
51+
_, cmd = list.Update(cmd().(MenuSelectMsg))
5252
require.NotNil(t, cmd)
5353

5454
msg := cmd()

internal/ui/menu_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestMenu_LetterKeysIgnoredWithoutShortcuts(t *testing.T) {
4343
menu, cmd := menu.Update(keyPressMsg("a"))
4444
assert.Nil(t, cmd)
4545

46-
menu, cmd = menu.Update(keyPressMsg("enter"))
46+
_, cmd = menu.Update(keyPressMsg("enter"))
4747
assert.NotNil(t, cmd)
4848
}
4949

0 commit comments

Comments
 (0)