From f09994dd849eb325c21c992031f79dd86e274dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 13 Apr 2020 15:15:41 +0200 Subject: [PATCH] Appease linter that warns about redundant type in composite literals --- command/pr_create_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/command/pr_create_test.go b/command/pr_create_test.go index b88023b35..9800f1433 100644 --- a/command/pr_create_test.go +++ b/command/pr_create_test.go @@ -361,17 +361,17 @@ func TestPRCreate_survey_defaults_multicommit(t *testing.T) { defer surveyTeardown() as.Stub([]*QuestionStub{ - &QuestionStub{ + { Name: "title", Default: true, }, - &QuestionStub{ + { Name: "body", Default: true, }, }) as.Stub([]*QuestionStub{ - &QuestionStub{ + { Name: "confirmation", Value: 1, }, @@ -438,17 +438,17 @@ func TestPRCreate_survey_defaults_monocommit(t *testing.T) { defer surveyTeardown() as.Stub([]*QuestionStub{ - &QuestionStub{ + { Name: "title", Default: true, }, - &QuestionStub{ + { Name: "body", Default: true, }, }) as.Stub([]*QuestionStub{ - &QuestionStub{ + { Name: "confirmation", Value: 1, }, @@ -605,17 +605,17 @@ func TestPRCreate_defaults_error_interactive(t *testing.T) { defer surveyTeardown() as.Stub([]*QuestionStub{ - &QuestionStub{ + { Name: "title", Default: true, }, - &QuestionStub{ + { Name: "body", Value: "social distancing", }, }) as.Stub([]*QuestionStub{ - &QuestionStub{ + { Name: "confirmation", Value: 0, },