mirror of
https://github.com/github/codeql-action.git
synced 2026-04-07 04:12:18 +00:00
Remove unused logger in NetworkReachabilityBackend
This commit is contained in:
5
lib/start-proxy-action.js
generated
5
lib/start-proxy-action.js
generated
@@ -121723,8 +121723,7 @@ var ReachabilityError = class extends Error {
|
||||
}
|
||||
};
|
||||
var NetworkReachabilityBackend = class {
|
||||
constructor(logger, proxy) {
|
||||
this.logger = logger;
|
||||
constructor(proxy) {
|
||||
this.proxy = proxy;
|
||||
this.agent = new import_https_proxy_agent.HttpsProxyAgent(`http://${proxy.host}:${proxy.port}`);
|
||||
}
|
||||
@@ -121761,7 +121760,7 @@ async function checkConnections(logger, proxy, backend) {
|
||||
if (proxy.registries.length === 0) return result;
|
||||
try {
|
||||
if (backend === void 0) {
|
||||
backend = new NetworkReachabilityBackend(logger, proxy);
|
||||
backend = new NetworkReachabilityBackend(proxy);
|
||||
}
|
||||
for (const registry of proxy.registries) {
|
||||
const address = getAddressString(registry);
|
||||
|
||||
@@ -31,10 +31,7 @@ export interface ReachabilityBackend {
|
||||
class NetworkReachabilityBackend implements ReachabilityBackend {
|
||||
private agent: https.Agent;
|
||||
|
||||
constructor(
|
||||
private readonly logger: Logger,
|
||||
private readonly proxy: ProxyInfo,
|
||||
) {
|
||||
constructor(private readonly proxy: ProxyInfo) {
|
||||
this.agent = new HttpsProxyAgent(`http://${proxy.host}:${proxy.port}`);
|
||||
}
|
||||
|
||||
@@ -87,7 +84,7 @@ export async function checkConnections(
|
||||
try {
|
||||
// Initialise a networking backend if no backend was provided.
|
||||
if (backend === undefined) {
|
||||
backend = new NetworkReachabilityBackend(logger, proxy);
|
||||
backend = new NetworkReachabilityBackend(proxy);
|
||||
}
|
||||
|
||||
for (const registry of proxy.registries) {
|
||||
|
||||
Reference in New Issue
Block a user