Skip to content

Commit 5787a7f

Browse files
committed
Fix eslint issues
1 parent 2e43e52 commit 5787a7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/configproxy.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,12 @@ export class ConfigurableProxy extends EventEmitter {
502502
options.target.searchParams.set("url", req.url);
503503
options.target.pathname = options.target.pathname + code.toString()
504504

505+
var url = "";
505506
if (options.target.socketPath) {
506507
options.target.hostname = 'localhost'
507-
var url = options.target.toString().substring(5) // chop off unix+
508+
url = options.target.toString().substring(5) // chop off unix+
508509
} else {
509-
var url = options.target.toString()
510+
url = options.target.toString()
510511
}
511512

512513
this.log.debug("Requesting custom error page: %s", url);

0 commit comments

Comments
 (0)