From 73286c31e3c7a325612314bb3197c8452c9836e6 Mon Sep 17 00:00:00 2001 From: Pawel Zak Date: Thu, 8 Feb 2024 16:41:14 +0100 Subject: [PATCH] suppress nilerr --- plugins/inputs/http_response/http_response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/http_response/http_response.go b/plugins/inputs/http_response/http_response.go index 3ecb6e59d5e05..379f664ab1eab 100644 --- a/plugins/inputs/http_response/http_response.go +++ b/plugins/inputs/http_response/http_response.go @@ -283,7 +283,7 @@ func (h *HTTPResponse) httpGather(u string) (map[string]interface{}, map[string] return fields, tags, nil } else if err != nil { h.setBodyReadError("Failed to read body of HTTP Response : "+err.Error(), bodyBytes, fields, tags) - return fields, tags, nil + return fields, tags, nil //nolint:nilerr // error is handled properly } // Add the body of the response if expected