fix(updater): explicitly ignore resp2.Body.Close() error after io.ReadAll

This commit is contained in:
程智超0668000959 2026-06-26 22:15:29 +08:00
parent dff16dbb91
commit 583d9e1e14

View file

@ -352,7 +352,7 @@ func findAssetInfo(releaseURL, platform, arch string) (string, string, error) {
continue
}
bs, err := io.ReadAll(resp2.Body)
resp2.Body.Close()
_ = resp2.Body.Close()
if err != nil {
continue
}