Fix lint issues

This commit is contained in:
9seconds
2026-02-24 13:35:06 +01:00
parent e4a9a96309
commit 36c766b331
5 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ func (p PublicConfigUpdater) Run(ctx context.Context, url, network string) {
resp, err := p.http.Do(req)
if err != nil {
if resp != nil {
io.Copy(io.Discard, resp.Body)
resp.Body.Close()
io.Copy(io.Discard, resp.Body) //nolint: errcheck
resp.Body.Close() //nolint: errcheck
}
return fmt.Errorf("cannot fetch url %s: %w", url, err)
}