Skip to content

Commit

Permalink
fix: make DefaultDelegate satisfy ItemDelegate interface
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Jun 21, 2024
1 parent adab190 commit 264ea14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion list/defaultitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (d DefaultDelegate) Spacing() int {
}

// Update checks whether the delegate's UpdateFunc is set and calls it.
func (d DefaultDelegate) Update(msg tea.Msg, m *Model) tea.Cmd {
func (d DefaultDelegate) Update(ctx tea.Context, msg tea.Msg, m *Model) tea.Cmd {

Check failure on line 130 in list/defaultitem.go

View workflow job for this annotation

GitHub Actions / lint

unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)

Check failure on line 130 in list/defaultitem.go

View workflow job for this annotation

GitHub Actions / lint

unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
if d.UpdateFunc == nil {
return nil
}
Expand Down

0 comments on commit 264ea14

Please sign in to comment.