From 5472388f816631c82f30c8507aae0cdea610128e Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Mon, 23 Aug 2021 10:31:28 +0200 Subject: [PATCH] [minor] Remove dead code --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ec936e0..9f83367 100644 --- a/index.js +++ b/index.js @@ -372,7 +372,7 @@ function Url(address, location, parser) { url.username = url.password = ''; if (url.auth) { instruction = url.auth.split(':'); - url.username = instruction[0] || ''; + url.username = instruction[0]; url.password = instruction[1] || ''; }