Prefer short declaration over make.

This commit is contained in:
jeff 2020-07-14 15:09:12 -07:00
parent 9568b3fd69
commit ff130af80a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func (s *Stmts) Close() {
// New will create a Stmts from the pass queries. Each string query will be prepared
// and mapped to the same key.
func New(ctx context.Context, db *sql.DB, sqlStmts map[StmtKey]string) (Stmts, error) {
s := make(Stmts)
s := Stmts{}
// Iterate through SQL statements and prepare them
for key, q := range sqlStmts {