From 4bd3620382a200736342b6c2adf12a3477e1d41f 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/iojs/io.js/pull/1095 Reviewed-By: Jeremiah Senkpiel Reviewed-By: Nicu Micleușanu --- lib/url.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/url.js b/lib/url.js index 3091aae..82209db 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 -- 2.7.4