Skip to content

Commit

Permalink
fix impl check
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed May 17, 2022
1 parent cc1eb9e commit 07ef663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/event_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type EventListener interface {
OnEvent(event Event)
}

var _ EventListener = (ListenerFunc)(nil)
var _ EventListener = (ListenerFunc[Event])(nil)

func NewListenerFunc[E Event](f func(e E)) ListenerFunc[E] {
return f
Expand Down

0 comments on commit 07ef663

Please sign in to comment.