Skip to content

Commit 6527b88

Browse files
committed
Linter complaining about driver.NamedValue
Signed-off-by: Matthew Kim <[email protected]>
1 parent 900adce commit 6527b88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connection_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ func TestConn_ExecContext(t *testing.T) {
777777
cfg: config.WithDefaults(),
778778
}
779779
res, err := testConn.ExecContext(context.Background(), "select 1", []driver.NamedValue{
780-
driver.NamedValue{Value: 1, Name: "name"},
780+
{Value: 1, Name: "name"},
781781
})
782782

783783
assert.Error(t, err)
@@ -875,7 +875,7 @@ func TestConn_QueryContext(t *testing.T) {
875875
cfg: config.WithDefaults(),
876876
}
877877
res, err := testConn.ExecContext(context.Background(), "select 1", []driver.NamedValue{
878-
driver.NamedValue{Value: 1, Name: "name"},
878+
{Value: 1, Name: "name"},
879879
})
880880

881881
assert.Error(t, err)

0 commit comments

Comments
 (0)