6e214ebc3d
* ensure all code paths close *sql.Rows
13 lines
271 B
Go
13 lines
271 B
Go
package sqlstore
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/mattermost/focalboard/server/services/mlog"
|
|
)
|
|
|
|
func (s *SQLStore) CloseRows(rows *sql.Rows) {
|
|
if err := rows.Close(); err != nil {
|
|
s.logger.Error("error closing MattermostAuthLayer row set", mlog.Err(err))
|
|
}
|
|
}
|