!133 删除冗余的suffix判断

Merge pull request !133 from HaixiangW/master
This commit is contained in:
openharmony_ci 2024-11-19 09:33:38 +00:00 committed by Gitee
commit 341ec0e617
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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 {