concourse / concourse

Unkeyed composite literals VET-V0007
Bug risk
Major
4 months ago3 years old
github.com/concourse/concourse/worker/baggageclaim/volume.Volume struct literal uses unkeyed fields
45					),
46					ghttp.CombineHandlers(
47						ghttp.VerifyRequest("GET", "/volumes-async/some-volume"),
48						ghttp.RespondWithJSONEncoded(http.StatusOK, volume.Volume{49							"some-volume",
50							"/some/path",
51							map[string]string{},
github.com/concourse/concourse/atc.ArtifactInputPlan struct literal uses unkeyed fields
 38		fakeBuild = new(dbfakes.FakeBuild)
 39		fakeWorkerPool = new(execfakes.FakePool)
 40
 41		plan = atc.Plan{ArtifactInput: &atc.ArtifactInputPlan{34, "some-input-artifact-name"}} 42		step = exec.NewArtifactInputStep(plan, fakeBuild, fakeWorkerPool)
 43	})
 44