Browse Source

Removed redundant error check

Eugene Fryntov 10 years ago
parent
commit
22f9afd249
1 changed files with 0 additions and 4 deletions
  1. 0 4
      psiphon/upstreamproxy/transport_proxy_auth.go

+ 0 - 4
psiphon/upstreamproxy/transport_proxy_auth.go

@@ -106,10 +106,6 @@ func (tr *ProxyAuthTransport) RoundTrip(req *http.Request) (resp *http.Response,
 	if resp.StatusCode == 407 {
 	if resp.StatusCode == 407 {
 		tr.mu.Lock()
 		tr.mu.Lock()
 		defer tr.mu.Unlock()
 		defer tr.mu.Unlock()
-		if err != nil {
-			//already wrapped in proxyError
-			return nil, err
-		}
 		ha, err = NewHttpAuthenticator(resp, tr.Username, tr.Password)
 		ha, err = NewHttpAuthenticator(resp, tr.Username, tr.Password)
 		if err != nil {
 		if err != nil {
 			return nil, err
 			return nil, err