Skip to content

Commit e1dd5d8

Browse files
committed
Remove useless condition in "if" statement.
1 parent 2584140 commit e1dd5d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RequestSender.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ RequestSender.prototype = {
7777
* Authentication
7878
* Authenticate once. _challenged_ flag used to avoid infinite authentications.
7979
*/
80-
if ((status_code === 401 || status_code === 407) && this.ua.configuration.authorization_user && this.ua.configuration.password !== null) {
80+
if ((status_code === 401 || status_code === 407) && this.ua.configuration.password !== null) {
8181

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

0 commit comments

Comments
 (0)