mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-10 22:42:00 +02:00
Cleanup: remove more unnecessary type arguments
Missed these in 44097384d3
.
This commit is contained in:
@@ -115,7 +115,7 @@ func TestListRenderer_renderLines(t *testing.T) {
|
|||||||
}
|
}
|
||||||
for _, s := range scenarios {
|
for _, s := range scenarios {
|
||||||
t.Run(s.name, func(t *testing.T) {
|
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
|
var getNonModelItems func() []*NonModelItem
|
||||||
if s.nonModelIndices != nil {
|
if s.nonModelIndices != nil {
|
||||||
getNonModelItems = func() []*NonModelItem {
|
getNonModelItems = func() []*NonModelItem {
|
||||||
@@ -236,7 +236,7 @@ func TestListRenderer_ModelIndexToViewIndex_and_back(t *testing.T) {
|
|||||||
assert.Equal(t, len(s.viewIndices), len(s.expectedModelIndices))
|
assert.Equal(t, len(s.viewIndices), len(s.expectedModelIndices))
|
||||||
|
|
||||||
modelInts := lo.Map(lo.Range(s.numModelItems), func(i int, _ int) myint { return myint(i) })
|
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
|
var getNonModelItems func() []*NonModelItem
|
||||||
if s.nonModelIndices != nil {
|
if s.nonModelIndices != nil {
|
||||||
getNonModelItems = func() []*NonModelItem {
|
getNonModelItems = func() []*NonModelItem {
|
||||||
|
Reference in New Issue
Block a user