Skip to content

Commit 7c9e7d7

Browse files
committed
[v3] don't wrap events in slice
1 parent 4a2dc28 commit 7c9e7d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: v3/pkg/application/application.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func (a *App) RegisterService(service Service) {
381381
}
382382

383383
// EmitEvent will emit an event
384-
func (a *App) EmitEvent(name string, data ...any) {
384+
func (a *App) EmitEvent(name string, data any) {
385385
a.customEventProcessor.Emit(&CustomEvent{
386386
Name: name,
387387
Data: data,

0 commit comments

Comments
 (0)