From f98ad65f464392220998026038fcb6a618c7ba45 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 8 Mar 2025 12:06:09 +0100 Subject: [PATCH] Cleanup: remove more unnecessary type arguments Missed these in 44097384d30d. --- pkg/gui/context/list_renderer_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gui/context/list_renderer_test.go b/pkg/gui/context/list_renderer_test.go index 99c476427..9ed47d03f 100644 --- a/pkg/gui/context/list_renderer_test.go +++ b/pkg/gui/context/list_renderer_test.go @@ -115,7 +115,7 @@ func TestListRenderer_renderLines(t *testing.T) { } for _, s := range scenarios { t.Run(s.name, func(t *testing.T) { - viewModel := NewListViewModel[mystring](func() []mystring { return s.modelStrings }) + viewModel := NewListViewModel(func() []mystring { return s.modelStrings }) var getNonModelItems func() []*NonModelItem if s.nonModelIndices != nil { getNonModelItems = func() []*NonModelItem { @@ -236,7 +236,7 @@ func TestListRenderer_ModelIndexToViewIndex_and_back(t *testing.T) { assert.Equal(t, len(s.viewIndices), len(s.expectedModelIndices)) modelInts := lo.Map(lo.Range(s.numModelItems), func(i int, _ int) myint { return myint(i) }) - viewModel := NewListViewModel[myint](func() []myint { return modelInts }) + viewModel := NewListViewModel(func() []myint { return modelInts }) var getNonModelItems func() []*NonModelItem if s.nonModelIndices != nil { getNonModelItems = func() []*NonModelItem {