Skip to content

Commit

Permalink
Close response body
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jun 7, 2022
1 parent 699277f commit fb8a128
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func (checker *SchemaChecker) Check(schemaKind string, file string) (string, err
if err != nil {
return "", errors.Wrap(err, file)
}
defer resp.Body.Close()
var buf bytes.Buffer
_, err = io.Copy(&buf, resp.Body)
if err != nil {
Expand Down

0 comments on commit fb8a128

Please sign in to comment.