From 8308f5fb6e82dca1ea946b9b4f4b3fd122f76cac Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Sun, 8 Mar 2015 04:11:37 +0300 Subject: [PATCH] url: remove redundant assignment in url.parse --- lib/url.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/url.js b/lib/url.js index 3091aaed572852..82209db01c8c31 100644 --- a/lib/url.js +++ b/lib/url.js @@ -276,7 +276,6 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { var p = this.port ? ':' + this.port : ''; var h = this.hostname || ''; this.host = h + p; - this.href += this.host; // strip [ and ] from the hostname // the host field still retains them, though