Skip to content

Commit 5472388

Browse files
committedAug 23, 2021
[minor] Remove dead code
1 parent 53d4d6d commit 5472388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function Url(address, location, parser) {
372372
url.username = url.password = '';
373373
if (url.auth) {
374374
instruction = url.auth.split(':');
375-
url.username = instruction[0] || '';
375+
url.username = instruction[0];
376376
url.password = instruction[1] || '';
377377
}
378378

0 commit comments

Comments
 (0)
Please sign in to comment.