Browse Source

url: remove redundant assignment in url.parse

PR-URL: https://github.com/iojs/io.js/pull/1095
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Nicu Micleușanu <micnic90@gmail.com>
v1.8.0-commit
Alex Kocharin 10 years ago
committed by Jeremiah Senkpiel
parent
commit
4bd3620382
  1. 1
      lib/url.js

1
lib/url.js

@ -276,7 +276,6 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
var p = this.port ? ':' + this.port : ''; var p = this.port ? ':' + this.port : '';
var h = this.hostname || ''; var h = this.hostname || '';
this.host = h + p; this.host = h + p;
this.href += this.host;
// strip [ and ] from the hostname // strip [ and ] from the hostname
// the host field still retains them, though // the host field still retains them, though

Loading…
Cancel
Save