mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
fix: 补充类型断言
This commit is contained in:
@@ -129,9 +129,9 @@ export class DeployCertToTencentAll extends AbstractTaskPlugin {
|
|||||||
|
|
||||||
let certId:string = null
|
let certId:string = null
|
||||||
if (typeof this.tencentCertId === 'string') {
|
if (typeof this.tencentCertId === 'string') {
|
||||||
certId = this.tencentCertId;
|
certId = this.tencentCertId as string;
|
||||||
} else if (this.tencentCertId && typeof this.tencentCertId === 'object') {
|
} else if (this.tencentCertId && typeof this.tencentCertId === 'object') {
|
||||||
certId = await this.uploadToTencent(access, this.tencentCertId);
|
certId = await this.uploadToTencent(access, this.tencentCertId as CertInfo);
|
||||||
} else {
|
} else {
|
||||||
throw new Error('无效的证书输入类型');
|
throw new Error('无效的证书输入类型');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user