Update dependencies (#5518)

This commit is contained in:
hongming
2023-02-12 23:09:20 +08:00
committed by GitHub
parent d3b35fb2da
commit a979342f56
1486 changed files with 126660 additions and 71128 deletions

View File

@@ -6,7 +6,6 @@ package util
import (
"io"
"io/ioutil"
"net/http"
)
@@ -15,7 +14,7 @@ import (
// leak can occur.
func Close(resp *http.Response) {
if resp != nil && resp.Body != nil {
if _, err := io.Copy(ioutil.Discard, resp.Body); err != nil {
if _, err := io.Copy(io.Discard, resp.Body); err != nil {
return
}
resp.Body.Close()