删除冗余的suffix判断

Signed-off-by: haixiangw <wanghaixiang@huawei.com>
This commit is contained in:
haixiangw 2024-11-19 00:17:32 -08:00
parent df4d0bc562
commit 3a575d04b0

View File

@ -51,10 +51,10 @@ export default class CmInstallPresenter {
console.debug(TAG + 'updateCertFileType suffix: ' + suffix);
if ((suffix === 'cer') || (suffix === 'pem') || (suffix === 'crt') || (suffix === 'der')) {
this.optType = CMModelOptType.CM_MODEL_OPT_USER_CA;
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) &&
} else if (((suffix === 'p12') || (suffix === 'pfx')) &&
AppStorage.get('installUserCred') === true) {
this.optType = CMModelOptType.CM_MODEL_OPT_APP_CRED;
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) &&
} else if (((suffix === 'p12') || (suffix === 'pfx')) &&
AppStorage.get('installSystemCred') === true) {
this.optType = CMModelOptType.CM_MODEL_OPT_SYSTEM_CRED;
} else {