database/sql: remove unnecessary types in composite literals

Change-Id: I30c576f826c82cbc62ce28ea7f4886702bd6605d
GitHub-Last-Rev: 2fead200db
GitHub-Pull-Request: golang/go#42618
Reviewed-on: https://go-review.googlesource.com/c/go/+/270000
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Trust: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Elias506 2021-03-25 14:46:15 +00:00 committed by Tobias Klauser
parent 53941b6150
commit 4d66d77cd2

View file

@ -915,7 +915,7 @@ func (s *fakeStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (
parentMem: s.c, parentMem: s.c,
posRow: -1, posRow: -1,
rows: [][]*row{ rows: [][]*row{
[]*row{ {
{ {
cols: []interface{}{ cols: []interface{}{
txStatus, txStatus,
@ -924,12 +924,12 @@ func (s *fakeStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (
}, },
}, },
cols: [][]string{ cols: [][]string{
[]string{ {
"tx_status", "tx_status",
}, },
}, },
colType: [][]string{ colType: [][]string{
[]string{ {
"string", "string",
}, },
}, },