Skip to content

Commit

Permalink
do not close request bc test needs it
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkruger committed Dec 16, 2024
1 parent 17c632f commit 902c901
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/ld/ld.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 902c901

Please sign in to comment.