mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
fix: suppress errcheck for deferred stmt.Close
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user