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{
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)
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)
Variable declaration and assignment can be merged, simplifying the code.
var x int
x = 1
var x int = 1
or
x := 1