chore: lint

This commit is contained in:
xiaojunnuo
2026-07-15 01:25:55 +08:00
parent 167b303fae
commit 6cc74a1c0a
26 changed files with 29 additions and 75 deletions
@@ -85,7 +85,7 @@ export class AliyunAccess extends BaseAccess {
access: this,
logger: this.ctx.logger,
endpoint,
});
});
return client;
}
@@ -94,9 +94,8 @@ export class AliyunAccess extends BaseAccess {
access: this,
logger: this.ctx.logger,
endpoint: endpoint,
});
});
}
}
new AliyunAccess();
@@ -20,13 +20,11 @@ export class AliyunClientV2 {
logger: ILogger;
endpoint: string;
client: any;
constructor(opts: { access: AliyunAccess; logger: ILogger; endpoint: string }) {
this.access = opts.access;
this.logger = opts.logger;
this.endpoint = opts.endpoint;
}
async importRuntime(name: string) {
@@ -96,4 +94,3 @@ export class AliyunClientV2 {
return res?.body;
}
}
@@ -7,7 +7,6 @@ export class AliyunClient {
agent: any;
useROAClient: boolean;
constructor(opts: { logger: ILogger; useROAClient?: boolean }) {
this.logger = opts.logger;
this.useROAClient = opts.useROAClient || false;
@@ -82,4 +81,3 @@ export class AliyunClient {
return res;
}
}
@@ -12,7 +12,6 @@ export type AliyunSslClientOpts = {
logger: ILogger;
endpoint?: string;
region?: string;
};
export type AliyunSslGetResourceListReq = {
@@ -47,7 +46,6 @@ export class AliyunSslClient {
constructor(opts: AliyunSslClientOpts) {
this.opts = opts;
this.logger = opts.logger;
}
checkRet(ret: any) {
@@ -254,5 +252,3 @@ export class AliyunSslClient {
}
}
}
@@ -19,7 +19,7 @@ export default class TencentOssClientImpl extends BaseOssClient<TencentCosAccess
logger: this.logger,
region: this.access.region,
bucket: this.access.bucket,
});
});
}
async download(filePath: string, savePath: string): Promise<void> {
const key = this.join(this.rootDir, filePath);
@@ -52,4 +52,3 @@ export default class TencentOssClientImpl extends BaseOssClient<TencentCosAccess
this.logger.info(`文件删除成功: ${filePath}`);
}
}
@@ -9,13 +9,11 @@ export class TencentCosClient {
region: string;
bucket: string;
constructor(opts: { access: TencentAccess; logger: ILogger; region: string; bucket: string }) {
this.access = opts.access;
this.logger = opts.logger;
this.bucket = opts.bucket;
this.region = opts.region;
}
async importRuntime(specifier: string) {
@@ -122,4 +120,3 @@ export class TencentCosClient {
});
}
}