From 4d66d77cd22812de4526e3973bc3314040a939a5 Mon Sep 17 00:00:00 2001 From: Elias506 <56119080+Elias506@users.noreply.github.com> Date: Thu, 25 Mar 2021 14:46:15 +0000 Subject: [PATCH] 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 --- src/database/sql/fakedb_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", }, }, -- 2.50.0