فهرست منبع

Fix linter errors

Mariano Cano 7 ماه پیش
والد
کامیت
be2523cfae
3فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 0 1
      authority/config/tls_options.go
  2. 2 2
      authority/poolhttp/poolhttp.go
  3. 1 1
      ca/client.go

+ 0 - 1
authority/config/tls_options.go

@@ -169,7 +169,6 @@ func (t *TLSOptions) TLSConfig() *tls.Config {
 		rs = tls.RenegotiateNever
 	}
 
-	//nolint:gosec // default MinVersion 1.2, if defined but empty 1.3 is used
 	return &tls.Config{
 		CipherSuites:  t.CipherSuites.Value(),
 		MinVersion:    t.MinVersion.Value(),

+ 2 - 2
authority/poolhttp/poolhttp.go

@@ -70,10 +70,10 @@ func (c *Client) Get(u string) (resp *http.Response, err error) {
 // as redirects, cookies, auth) as configured on the client.
 func (c *Client) Do(req *http.Request) (resp *http.Response, err error) {
 	if hc := c.getClient(); hc != nil {
-		resp, err = hc.Do(req) //nolint:gosec // intentional HTTP request to configured endpoint
+		resp, err = hc.Do(req)
 		c.pool.Put(hc)
 	} else {
-		resp, err = http.DefaultClient.Do(req) //nolint:gosec // intentional HTTP request to configured endpoint
+		resp, err = http.DefaultClient.Do(req)
 	}
 
 	return

+ 1 - 1
ca/client.go

@@ -143,7 +143,7 @@ func enforceRequestID(r *http.Request) {
 func (c *uaClient) Do(req *http.Request) (*http.Response, error) {
 	req.Header.Set("User-Agent", UserAgent)
 	enforceRequestID(req)
-	return c.Client.Do(req) //nolint:gosec // request to user-configured CA server
+	return c.Client.Do(req)
 }
 
 // RetryFunc defines the method used to retry a request. If it returns true, the