[MM-61775] Fix errcheck issues in server/channels/app/platform/web_broadcast_hook.go (#29514)

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
This commit is contained in:
Seiya Homma 2025-01-27 20:26:28 +09:00 committed by GitHub
parent 737bed311c
commit a5faf9e6e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -95,7 +95,6 @@ issues:
channels/app/platform/license.go|\
channels/app/platform/session.go|\
channels/app/platform/status.go|\
channels/app/platform/web_broadcast_hook.go|\
channels/app/platform/web_hub_test.go|\
channels/app/plugin_test.go|\
channels/app/post_helpers_test.go|\

View file

@ -29,7 +29,10 @@ func (h *Hub) runBroadcastHooks(msg *model.WebSocketEvent, webConn *WebConn, hoo
continue
}
hook.Process(hookedEvent, webConn, args)
err := hook.Process(hookedEvent, webConn, args)
if err != nil {
mlog.Warn("runBroadcastHooks: Error processing hook", mlog.String("hook_id", hookID), mlog.Err(err))
}
}
return hookedEvent.Event()