fix: suppress errcheck for deferred stmt.Close

This commit is contained in:
Doğan Can Bakır
2026-03-03 21:07:09 +03:00
parent 0e3ceee5d0
commit 30032e69bd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ func (m *mysqlDatabase) InsertBatch(ctx context.Context, results []runner.Result
if err != nil {
return fmt.Errorf("failed to prepare statement: %w", err)
}
defer stmt.Close()
defer stmt.Close() //nolint:errcheck
for _, r := range results {
aJSON, _ := json.Marshal(r.A)
+1 -1
View File
@@ -220,7 +220,7 @@ func (p *postgresDatabase) InsertBatch(ctx context.Context, results []runner.Res
if err != nil {
return fmt.Errorf("failed to prepare statement: %w", err)
}
defer stmt.Close()
defer stmt.Close() //nolint:errcheck
for _, r := range results {
hashJSON, _ := json.Marshal(r.Hashes)