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)) + } }