From 61167b8a7d868e2a06331be2e806ae4889aff5a6 Mon Sep 17 00:00:00 2001 From: samuel Date: Sun, 18 Jun 2023 17:41:24 +0200 Subject: [PATCH] fix linting error --- tea/scenes/mods/mods.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tea/scenes/mods/mods.go b/tea/scenes/mods/mods.go index 4a431d9..2714f1a 100644 --- a/tea/scenes/mods/mods.go +++ b/tea/scenes/mods/mods.go @@ -55,7 +55,7 @@ type modsList struct { } func NewMods(root components.RootModel, parent tea.Model) tea.Model { - l := list.New([]list.Item{}, ModsListDelegate{ + l := list.New([]list.Item{}, ListDelegate{ ItemDelegate: utils.NewItemDelegate(), Context: root.GetGlobal(), }, root.Size().Width, root.Size().Height-root.Height()) @@ -462,12 +462,12 @@ func ascDesc(order sortOrder, result bool) bool { return !result } -type ModsListDelegate struct { +type ListDelegate struct { list.ItemDelegate Context *cli.GlobalContext } -func (c ModsListDelegate) Render(w io.Writer, m list.Model, index int, item list.Item) { +func (c ListDelegate) Render(w io.Writer, m list.Model, index int, item list.Item) { realItem := item.(utils.SimpleItemExtra[modsList, ficsit.ModsModsGetModsModsMod]) realDelegate := c.ItemDelegate.(list.DefaultDelegate)