Fix lint errors

This commit is contained in:
Neil Alexander 2022-03-24 10:03:22 +00:00
parent 6c95f9b535
commit d983d17355
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
11 changed files with 30 additions and 48 deletions

View file

@ -151,7 +151,7 @@ func (s *eventStateKeyStatements) BulkSelectEventStateKey(
if err != nil {
return nil, err
}
defer selectPrep.Close()
defer internal.CloseAndLogIfError(ctx, selectPrep, "selectPrep.close() failed")
stmt := sqlutil.TxStmt(txn, selectPrep)
rows, err := stmt.QueryContext(ctx, iEventStateKeyNIDs...)
if err != nil {