Skip to content

Commit

Permalink
syntax fix with a switch
Browse files Browse the repository at this point in the history
  • Loading branch information
ardan-bkennedy committed Jan 27, 2024
1 parent d40200b commit 7518b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/engine/v1/handlers/gamegrp/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ func (evt *events) send(ctx context.Context, gID string, typ string, v ...any) {
}

var msg string
switch {
case v == nil:
switch v {
case nil:
msg = fmt.Sprintf(`{"type":"%s","address":"%s"}`, typ, mid.GetSubject(ctx))

default:
Expand Down

0 comments on commit 7518b09

Please sign in to comment.