Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Oct 24, 2024
1 parent 91313ea commit 1ae728d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ func sendRequest(url, namespace, code string) (string, error) {
req.Header.Add("X-Code", code)
}
regularRequest, err := http.DefaultClient.Do(req)
if err != nil {
return "", err
}
defer regularRequest.Body.Close()

bytes, err := io.ReadAll(regularRequest.Body)
Expand Down

0 comments on commit 1ae728d

Please sign in to comment.