Quellcode durchsuchen

Hack the code so that both existing Go versions and current Go master format it the same (#358)

Margaret Nolan vor 7 Jahren
Ursprung
Commit
58b78aa5a1
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      internal/driver/fetch.go

+ 2
- 2
internal/driver/fetch.go Datei anzeigen

@@ -599,9 +599,9 @@ var httpGet = func(source string, timeout time.Duration) (*http.Response, error)
599 599
 
600 600
 	client := &http.Client{
601 601
 		Transport: &http.Transport{
602
+			Proxy:                 http.ProxyFromEnvironment,
603
+			TLSClientConfig:       tlsConfig,
602 604
 			ResponseHeaderTimeout: timeout + 5*time.Second,
603
-			Proxy:           http.ProxyFromEnvironment,
604
-			TLSClientConfig: tlsConfig,
605 605
 		},
606 606
 	}
607 607
 	return client.Get(source)