Skip to content

Commit

Permalink
squash: address third refack nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Jul 7, 2017
1 parent 5da6124 commit a1f4bfb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,11 @@ Url.prototype.format = function format() {
if (this.host) {
host = auth + this.host;
} else if (this.hostname) {
host = auth + (this.hostname.indexOf(':') === -1 ?
this.hostname :
'[' + this.hostname + ']');
host = auth + (
this.hostname.indexOf(':') === -1 ?
this.hostname :
'[' + this.hostname + ']'
);
if (this.port) {
host += ':' + this.port;
}
Expand Down

0 comments on commit a1f4bfb

Please sign in to comment.