Skip to content

Commit

Permalink
Remove useless condition in "if" statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Feb 28, 2013
1 parent 2584140 commit e1dd5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestSender.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ RequestSender.prototype = {
* Authentication
* Authenticate once. _challenged_ flag used to avoid infinite authentications.
*/
if ((status_code === 401 || status_code === 407) && this.ua.configuration.authorization_user && this.ua.configuration.password !== null) {
if ((status_code === 401 || status_code === 407) && this.ua.configuration.password !== null) {

// Get and parse the appropriate WWW-Authenticate or Proxy-Authenticate header.
if (response.status_code === 401) {
Expand Down

0 comments on commit e1dd5d8

Please sign in to comment.