focalboard/server/services/store/sqlstore/util.go

14 lines
272 B
Go
Raw Normal View History

package sqlstore
import (
"database/sql"
"github.com/mattermost/mattermost-server/v6/shared/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))
}
}