focalboard/server/services/store/sqlstore/util.go
Doug Lauder 6e214ebc3d
Ensure all code paths close *sql.Rows (#679)
* ensure all code paths close *sql.Rows
2021-07-06 16:44:11 -04:00

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))
}
}