Skip to content

Commit

Permalink
url: remove redundant assignment in url.parse
Browse files Browse the repository at this point in the history
PR-URL: #1095
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Nicu Micleușanu <[email protected]>
  • Loading branch information
rlidwka authored and Fishrock123 committed Mar 8, 2015
1 parent fe36076 commit 4bd3620
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bd3620

Please sign in to comment.