From: Elias506 <56119080+Elias506@users.noreply.github.com> Date: Thu, 25 Mar 2021 14:46:15 +0000 (+0000) Subject: database/sql: remove unnecessary types in composite literals X-Git-Tag: go1.17beta1~977 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4d66d77cd2;p=gostls13.git database/sql: remove unnecessary types in composite literals Change-Id: I30c576f826c82cbc62ce28ea7f4886702bd6605d GitHub-Last-Rev: 2fead200dba13ec74d81e842d8bae97d1e67fcc4 GitHub-Pull-Request: golang/go#42618 Reviewed-on: https://go-review.googlesource.com/c/go/+/270000 Reviewed-by: Daniel Theophanes Trust: Cherry Zhang --- diff --git a/src/database/sql/fakedb_test.go b/src/database/sql/fakedb_test.go index 1bfd1118aa..72e16e05b1 100644 --- a/src/database/sql/fakedb_test.go +++ b/src/database/sql/fakedb_test.go @@ -915,7 +915,7 @@ func (s *fakeStmt) QueryContext(ctx context.Context, args []driver.NamedValue) ( parentMem: s.c, posRow: -1, rows: [][]*row{ - []*row{ + { { cols: []interface{}{ txStatus, @@ -924,12 +924,12 @@ func (s *fakeStmt) QueryContext(ctx context.Context, args []driver.NamedValue) ( }, }, cols: [][]string{ - []string{ + { "tx_status", }, }, colType: [][]string{ - []string{ + { "string", }, },