From 63061e3a52d078d0ae9df86c25022fd0a091842b Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Wed, 13 Oct 2021 23:41:20 -0400 Subject: [PATCH] fix(bait): allow more than 1 argment for catch callback --- golibs/bait/bait.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golibs/bait/bait.go b/golibs/bait/bait.go index 021710e..55fc2d3 100644 --- a/golibs/bait/bait.go +++ b/golibs/bait/bait.go @@ -30,6 +30,6 @@ func (b *Bait) throw(name string, args ...interface{}) { b.Em.Emit(name, args...) } -func (b *Bait) catch(name string, catcher func(interface{})) { +func (b *Bait) catch(name string, catcher func(...interface{})) { b.Em.On(name, catcher) }