From d9e61235c16305d54d14ceeb20e5d7d5b816bbfe Mon Sep 17 00:00:00 2001 From: Raghav Aggarwal Date: Wed, 20 Dec 2023 23:59:29 +0530 Subject: [PATCH] [MM-42] Fix CI error: 'xyz' has 2 occurrences, make it a constant (#332) --- server/webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/webhook.go b/server/webhook.go index 8ed8274d..44894a30 100644 --- a/server/webhook.go +++ b/server/webhook.go @@ -179,14 +179,14 @@ func (p *Plugin) handleValidateZoomWebhook(w http.ResponseWriter, r *http.Reques var webhook zoom.ValidationWebhook err := json.Unmarshal(body, &webhook) if err != nil { - p.API.LogWarn("Failed to validate Zoom webhook: " + err.Error()) + p.API.LogWarn("Failed to unmarshal Zoom webhook: " + err.Error()) w.WriteHeader(http.StatusBadRequest) return } hash, err := createWebhookSignatureHash(config.ZoomWebhookSecret, webhook.Payload.PlainToken) if err != nil { - p.API.LogWarn("Failed to validate Zoom webhook: " + err.Error()) + p.API.LogWarn("Failed to create webhook signature hash: " + err.Error()) w.WriteHeader(http.StatusBadRequest) return }