Skip to content

Commit a1f4bfb

Browse files
committed
squash: address third refack nit
1 parent 5da6124 commit a1f4bfb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/url.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,11 @@ Url.prototype.format = function format() {
584584
if (this.host) {
585585
host = auth + this.host;
586586
} else if (this.hostname) {
587-
host = auth + (this.hostname.indexOf(':') === -1 ?
588-
this.hostname :
589-
'[' + this.hostname + ']');
587+
host = auth + (
588+
this.hostname.indexOf(':') === -1 ?
589+
this.hostname :
590+
'[' + this.hostname + ']'
591+
);
590592
if (this.port) {
591593
host += ':' + this.port;
592594
}

0 commit comments

Comments
 (0)