Skip to content

Commit 4bd3620

Browse files
rlidwkaFishrock123
authored andcommitted
url: remove redundant assignment in url.parse
PR-URL: #1095 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Nicu Micleușanu <[email protected]>
1 parent fe36076 commit 4bd3620

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/url.js

-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
276276
var p = this.port ? ':' + this.port : '';
277277
var h = this.hostname || '';
278278
this.host = h + p;
279-
this.href += this.host;
280279

281280
// strip [ and ] from the hostname
282281
// the host field still retains them, though

0 commit comments

Comments
 (0)