Skip to content

Commit

Permalink
(fix) check the correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Mar 17, 2021
1 parent 3e9cf05 commit 28a8c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/chrome.go
Expand Up @@ -44,7 +44,7 @@ func (chrome *Chrome) Preflight(url *url.URL) (resp *http.Response, title string
if chrome.Proxy != "" {
var erri error
proxyURL, erri := url.Parse(chrome.Proxy)
if err != nil {
if erri != nil {
return nil, "", erri
}
transport.Proxy = http.ProxyURL(proxyURL)
Expand Down

0 comments on commit 28a8c77

Please sign in to comment.