From b859ca2d906c7056079e35428d30d9b3d9fd8707 Mon Sep 17 00:00:00 2001 From: Arya Khochare <91268931+Aryakoste@users.noreply.github.com> Date: Fri, 4 Oct 2024 13:05:53 +0530 Subject: [PATCH] errcheck issues fixed (#28416) --- server/.golangci.yml | 1 - server/channels/api4/integration_action.go | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/.golangci.yml b/server/.golangci.yml index efc67641c1..6041a441b2 100644 --- a/server/.golangci.yml +++ b/server/.golangci.yml @@ -83,7 +83,6 @@ issues: channels/api4/group_local.go|\ channels/api4/handlers_test.go|\ channels/api4/import_test.go|\ - channels/api4/integration_action.go|\ channels/api4/integration_action_test.go|\ channels/api4/ip_filtering.go|\ channels/api4/ip_filtering_test.go|\ diff --git a/server/channels/api4/integration_action.go b/server/channels/api4/integration_action.go index eae516efab..7076009b81 100644 --- a/server/channels/api4/integration_action.go +++ b/server/channels/api4/integration_action.go @@ -136,5 +136,7 @@ func submitDialog(c *Context, w http.ResponseWriter, r *http.Request) { b, _ := json.Marshal(resp) - w.Write(b) + if _, err := w.Write(b); err != nil { + c.Logger.Warn("Error while writing response", mlog.Err(err)) + } }