Skip to content

Commit

Permalink
fix declaration of "err" at line 108
Browse files Browse the repository at this point in the history
  • Loading branch information
hrittikhere committed Oct 23, 2023
1 parent b831067 commit 15486e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/confighttp/confighttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ func (hcs *HTTPClientSettings) ToClient(host component.Host, settings component.

// Setting the Proxy URL
if hcs.ProxyURL != "" {
proxyURL, err := url.ParseRequestURI(hcs.ProxyURL)
if err != nil {
return nil, err
proxyURL, parseErr := url.ParseRequestURI(hcs.ProxyURL)
if parseErr != nil {
return nil, parseErr
}

Check warning on line 144 in config/confighttp/confighttp.go

View check run for this annotation

Codecov / codecov/patch

config/confighttp/confighttp.go#L143-L144

Added lines #L143 - L144 were not covered by tests
transport.Proxy = http.ProxyURL(proxyURL)
}
Expand Down

0 comments on commit 15486e3

Please sign in to comment.