Skip to content

Commit 555ee17

Browse files
committed
Remove unused logger in NetworkReachabilityBackend
1 parent e114998 commit 555ee17

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

lib/start-proxy-action.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy/reachability.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ export interface ReachabilityBackend {
3131
class NetworkReachabilityBackend implements ReachabilityBackend {
3232
private agent: https.Agent;
3333

34-
constructor(
35-
private readonly logger: Logger,
36-
private readonly proxy: ProxyInfo,
37-
) {
34+
constructor(private readonly proxy: ProxyInfo) {
3835
this.agent = new HttpsProxyAgent(`http://${proxy.host}:${proxy.port}`);
3936
}
4037

@@ -87,7 +84,7 @@ export async function checkConnections(
8784
try {
8885
// Initialise a networking backend if no backend was provided.
8986
if (backend === undefined) {
90-
backend = new NetworkReachabilityBackend(logger, proxy);
87+
backend = new NetworkReachabilityBackend(proxy);
9188
}
9289

9390
for (const registry of proxy.registries) {

0 commit comments

Comments
 (0)