!2197 目标找不到 改成正确

Merge pull request !2197 from xuqian0131/errorToOk
This commit is contained in:
openharmony_ci 2024-10-28 11:24:30 +00:00 committed by Gitee
commit 09db4a831f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -609,7 +609,7 @@ ErrCode AppAccountManagerService::QueryAllAccessibleAccounts(
bool ret = BundleManagerAdapter::GetInstance()->GetBundleInfo(
owner, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, userId);
if (!ret) {
return ERR_APPACCOUNT_SERVICE_GET_BUNDLE_INFO;
return ERR_OK;
}
return innerManager_->GetAllAccounts(owner, appAccounts, callingUid, bundleName, appIndex);
}
@ -725,7 +725,7 @@ ErrCode AppAccountManagerService::SubscribeAppAccount(
AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, userId);
if (!bundleRet) {
ACCOUNT_LOGE("failed to get bundle info");
return ERR_APPACCOUNT_SERVICE_GET_BUNDLE_INFO;
return ERR_OK;
}
}