Merge pull request #779 from cli/composite-literals-lint

Appease linter that warns about redundant type in composite literals
This commit is contained in:
Mislav Marohnić 2020-04-13 16:52:53 +02:00 committed by GitHub
commit 3fdae05bcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
},