concourse / concourse

Found variable declaration and assignment separately SCC-S1021
Anti-pattern
Major
3 months ago3 years old
should merge variable declaration with assignment on next line
591}
592
593func transport(insecure bool, caCertPool *x509.CertPool, clientCertificate []tls.Certificate) http.RoundTripper {
594	var transport http.RoundTripper595
596	transport = &http.Transport{
597		TLSClientConfig: &tls.Config{
should merge variable declaration with assignment on next line
405
406			Context("when there are no public pipelines", func() {
407				BeforeEach(func() {
408					var fakeTeam *dbfakes.FakeTeam409					fakeTeam = new(dbfakes.FakeTeam)
410					fakeTeam.NameReturns("a-private-team")
411					dbTeamFactory.FindTeamReturns(fakeTeam, true, nil)
should merge variable declaration with assignment on next line
359
360			Context("when there are public pipelines", func() {
361				BeforeEach(func() {
362					var fakeTeam *dbfakes.FakeTeam363					fakeTeam = new(dbfakes.FakeTeam)
364					fakeTeam.NameReturns("a-public-team")
365					dbTeamFactory.FindTeamReturns(fakeTeam, true, nil)