fix: fix lint issue

This commit is contained in:
dudaodong committed 2022-12-10 16:41:40 +08:00
1 parent 2725575d2f
commit 13bbe19ab2
17 files changed
+142 -98

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ package netutil
import (
"encoding/json"
"io/ioutil"
"io"
"net"
"net/http"
"net/url"
@@ -55,7 +55,7 @@ func GetPublicIpInfo() (*PublicIpInfo, error) {
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}