From 902c9019f15c841106105468533fb94877428a5f Mon Sep 17 00:00:00 2001 From: Kevin Kruger Date: Mon, 16 Dec 2024 15:08:04 -0500 Subject: [PATCH] do not close request bc test needs it --- internal/ld/ld.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/ld/ld.go b/internal/ld/ld.go index dec2eb25..c1ca4a2b 100644 --- a/internal/ld/ld.go +++ b/internal/ld/ld.go @@ -451,9 +451,6 @@ func (c ApiClient) do(req *h.Request) (*http.Response, error) { return nil, err } - // Ensure the response body is closed - defer res.Body.Close() - // Check for all general status codes returned by the code references API, attempting to deconstruct LD error messages, if possible. switch res.StatusCode { case http.StatusOK, http.StatusCreated, http.StatusNoContent: