diff --git a/receiver/webhookeventreceiver/receiver.go b/receiver/webhookeventreceiver/receiver.go index 7446cd1ea4de..2cb5140dab1a 100644 --- a/receiver/webhookeventreceiver/receiver.go +++ b/receiver/webhookeventreceiver/receiver.go @@ -216,7 +216,7 @@ func (er *eventReceiver) failBadReq(_ context.Context, w.WriteHeader(httpStatusCode) if len(jsonResp) > 0 { w.Header().Add("Content-Type", "application/json") - _, err := w.Write(jsonResp) + _, err = w.Write(jsonResp) if err != nil { er.settings.Logger.Warn("failed to write json response", zap.Error(err)) } diff --git a/receiver/webhookeventreceiver/req_to_log.go b/receiver/webhookeventreceiver/req_to_log.go index 3ce8da6a66af..222621f9c263 100644 --- a/receiver/webhookeventreceiver/req_to_log.go +++ b/receiver/webhookeventreceiver/req_to_log.go @@ -15,7 +15,7 @@ import ( func reqToLog(sc *bufio.Scanner, query url.Values, - _config *Config, + _ *Config, settings receiver.CreateSettings) (plog.Logs, int) { log := plog.NewLogs() resourceLog := log.ResourceLogs().AppendEmpty()