Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
squash: address third refack nit
  • Loading branch information
Trott committed Jul 7, 2017
commit a1f4bfb5d1e4366901d5551ddab12d26de6fcd57
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