Satisfy linter

This commit is contained in:
HugeFrog24
2026-05-28 21:01:23 +02:00
parent d97a2c3132
commit a2cc252e8f
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ func (b *Bot) downloadTelegramFile(ctx context.Context, fileID string) ([]byte,
if err != nil {
return nil, fmt.Errorf("telegram download %s: %w", fileID, err)
}
defer resp.Body.Close()
defer func() { _ = resp.Body.Close() }()
if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("telegram download %s: status %d", fileID, resp.StatusCode)
}