From dcbc406ebaef365959b3dc0aa355210f998fd48a Mon Sep 17 00:00:00 2001 From: ArthurHlt Date: Tue, 9 Mar 2021 17:32:23 +0100 Subject: [PATCH] make linter happy --- aggregate_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aggregate_handler.go b/aggregate_handler.go index b96481b..37cc30b 100644 --- a/aggregate_handler.go +++ b/aggregate_handler.go @@ -57,7 +57,7 @@ func (a AggregateHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { } for _, endpoint := range endpoints { var body io.Reader = nil - if previousData != nil && len(previousData) > 0 { + if len(previousData) > 0 { body = bytes.NewBuffer(previousData) } reqEndpoint, err := http.NewRequest(req.Method, req.URL.String(), body)