Based on https://golang.org/pkg/database/sql/#Tx.Commit this function returns an error type. So why not check it.