client: S1031: unnecessary nil check around range (gosimple)
client/request.go:245:2: S1031: unnecessary nil check around range (gosimple)
if headers != nil {
^
@@ -242,11 +242,9 @@ func (cli *Client) addHeaders(req *http.Request, headers headers) *http.Request
req.Header.Set(k, v)
}
- if headers != nil {
for k, v := range headers {
req.Header[k] = v
}
- }
return req
}
