Fix errcheck and ineffassign lint errors

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-04-24 14:17:30 +02:00
parent c364c3eacb
commit ab5654f6e5
4 changed files with 4 additions and 6 deletions

View File

@@ -92,7 +92,7 @@ func FetchSitemapTool() agent.Tool {
ErrorDetail: fmt.Sprintf("cannot decompress gzipped sitemap: %s", err),
}), nil
}
defer gz.Close()
defer func() { _ = gz.Close() }()
reader = gz
}