You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/.go/src/github.com/akerl/voyager/prompt master*
❯ unparam -debug
func WithWmenu$1
parameter opts : []github.com/akerl/voyager/vendor/github.com/dixonwille/wmenu.Opt
skip - used somewhere in the func body
wmenu.go:17:39: WithWmenu$1 - result 0 (error) is always nil
The code in question:
menu.Action(func(opts []wmenu.Opt) error {
c <- opts[0].ID
return nil
})
While it's correct that I'm not ever setting the return to something other than nil, the error is a crucial part of the function signature, given that it's needed by menu.Action()
The text was updated successfully, but these errors were encountered:
Looking at https://github.com/akerl/voyager/blob/b3c2a92371cac8d4a59d5f058d71e3cc011c9310/prompt/wmenu.go#L17-L20 , I get the following error:
The code in question:
While it's correct that I'm not ever setting the return to something other than nil, the error is a crucial part of the function signature, given that it's needed by
menu.Action()
The text was updated successfully, but these errors were encountered: