mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Ignore error from rows.Close()
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
66ada680fe
commit
2fb994ad1d
|
|
@ -99,7 +99,7 @@ func (s *redactionStatements) bulkSelectRedaction(
|
|||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
defer func() { err = rows.Close() }()
|
||||
defer rows.Close() // nolint: errcheck
|
||||
|
||||
validated = make(map[string]types.EventNID)
|
||||
unvalidated = make(map[string]types.EventNID)
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ func (s *redactionStatements) bulkSelectRedaction(
|
|||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
defer func() { err = rows.Close() }()
|
||||
defer rows.Close() // nolint: errcheck
|
||||
|
||||
validated = make(redactedToRedactionMap)
|
||||
unvalidated = make(redactedToRedactionMap)
|
||||
|
|
|
|||
Loading…
Reference in a new issue