mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 10:10:25 +00:00
✏️ make lint happy
This commit is contained in:
@@ -29,9 +29,9 @@ func DownloadTo(url, file string, chkcrt bool) error {
|
||||
f, err = os.Create(file)
|
||||
if err == nil {
|
||||
_, err = io.Copy(f, resp.Body)
|
||||
resp.Body.Close()
|
||||
f.Close()
|
||||
}
|
||||
resp.Body.Close()
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ var (
|
||||
lzmu sync.Mutex
|
||||
)
|
||||
|
||||
// GetLazyData 获取懒加载数据
|
||||
func GetLazyData(path string, isReturnDataBytes, isDataMustEqual bool) ([]byte, error) {
|
||||
var data []byte
|
||||
var resp *http.Response
|
||||
|
||||
Reference in New Issue
Block a user