Skip to content

Commit ea3d808

Browse files
committed
Fix eslint issues
1 parent 4337046 commit ea3d808

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
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);

lib/testutil.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import http from "node:http";
44
import https from "node:https";
55
import { WebSocketServer } from "ws";
66
import { ConfigurableProxy } from "./configproxy.js";
7-
import { defaultLogger } from "./log.js";
8-
import { error } from "node:console";
97

108
var servers = [];
119

0 commit comments

Comments
 (0)