Unverified Commit c5f21f73 authored by Icelain's avatar Icelain Committed by GitHub
Browse files

follow best practices by adding resp.Body.Close() (#1708)

parent 371bc735
......@@ -18,6 +18,8 @@ func main() {
os.Exit(1)
}
defer resp.Body.Close()
responseData, err := io.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment