Skip to content

Commit 7b7d770

Browse files
committed
fix: add named param to interface method Resolve to satisfy inamedparam linter
Assisted-By: docker-agent
1 parent acd9cda commit 7b7d770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/tui/core/core.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ func CmdHandler(msg tea.Msg) tea.Cmd {
6262
// Notice: This function is EXPERIMENTAL and may be changed or removed in a
6363
// later release.
6464
func Resolve[T any](m tea.Model) T {
65-
if r, ok := m.(interface{ Resolve(any) any }); ok {
65+
if r, ok := m.(interface{ Resolve(key any) any }); ok {
6666
if v := r.Resolve(any((*T)(nil))); v != nil {
6767
return v.(T)
6868
}
6969
panic(fmt.Sprintf("tui/core: model cannot provide type %T", *new(T)))
7070
}
71-
panic("tui/core: model does not implement Resolve(any) any")
71+
panic("tui/core: model does not implement Resolve(key any) any")
7272
}

0 commit comments

Comments
 (0)