Skip to content

Commit f98ad65

Browse files
committed
Cleanup: remove more unnecessary type arguments
Missed these in 4409738.
1 parent f5f2464 commit f98ad65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gui/context/list_renderer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func TestListRenderer_renderLines(t *testing.T) {
115115
}
116116
for _, s := range scenarios {
117117
t.Run(s.name, func(t *testing.T) {
118-
viewModel := NewListViewModel[mystring](func() []mystring { return s.modelStrings })
118+
viewModel := NewListViewModel(func() []mystring { return s.modelStrings })
119119
var getNonModelItems func() []*NonModelItem
120120
if s.nonModelIndices != nil {
121121
getNonModelItems = func() []*NonModelItem {
@@ -236,7 +236,7 @@ func TestListRenderer_ModelIndexToViewIndex_and_back(t *testing.T) {
236236
assert.Equal(t, len(s.viewIndices), len(s.expectedModelIndices))
237237

238238
modelInts := lo.Map(lo.Range(s.numModelItems), func(i int, _ int) myint { return myint(i) })
239-
viewModel := NewListViewModel[myint](func() []myint { return modelInts })
239+
viewModel := NewListViewModel(func() []myint { return modelInts })
240240
var getNonModelItems func() []*NonModelItem
241241
if s.nonModelIndices != nil {
242242
getNonModelItems = func() []*NonModelItem {

0 commit comments

Comments
 (0)