Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
shalper2 committed Jun 6, 2023
1 parent d905533 commit cf6d6e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion receiver/webhookeventreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
2 changes: 1 addition & 1 deletion receiver/webhookeventreceiver/req_to_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cf6d6e2

Please sign in to comment.