!5454 codecheck修改

Merge pull request !5454 from 黄师伟/master
This commit is contained in:
openharmony_ci
2023-05-18 13:19:16 +00:00
committed by Gitee
7 changed files with 8 additions and 8 deletions
@@ -26,7 +26,7 @@ errMap.set(ERROR_CODE_INNER_ERROR, ERROR_MSG_INNER_ERROR);
class DataUriError extends Error {
constructor(code) {
let msg = ''
let msg = '';
if (errMap.has(code)) {
msg = errMap.get(code);
} else {
+1 -1
View File
@@ -132,7 +132,7 @@ class Callee extends rpc.RemoteObject {
if (this.callList == null) {
console.log('Callee on error, this.callList is nullptr');
throw new BusinessError(ERROR_CODE_INNER_ERROR);;
throw new BusinessError(ERROR_CODE_INNER_ERROR);
}
if (this.callList.has(method)) {
+1 -1
View File
@@ -35,7 +35,7 @@ errMap.set(ERROR_CODE_INNER_ERROR, ERROR_MSG_INNER_ERROR);
class BusinessError extends Error {
constructor(code) {
let msg = ''
let msg = '';
if (errMap.has(code)) {
msg = errMap.get(code);
} else {
@@ -35,7 +35,7 @@ globalThis.$app_define$ = function (page, packageName, parseContent) {
parseContent({}, module.exports, module);
globalThis.exports.default = module.exports;
console.info('Delegator Mgmt app_define');
}
};
globalThis.$app_bootstrap$ = function () { };
console.info('Delegator Mgmt init success');
@@ -1027,7 +1027,7 @@ int AbilityManagerService::StartUIAbilityBySCB(const Want &want, const StartOpti
EventInfo eventInfo = BuildEventInfo(want, currentUserId);
EventReport::SendAbilityEvent(EventName::START_ABILITY, HiSysEventType::BEHAVIOR, eventInfo);
if(!CheckCallingTokenId(BUNDLE_NAME_SCENEBOARD, U0_USER_ID)) {
if (!CheckCallingTokenId(BUNDLE_NAME_SCENEBOARD, U0_USER_ID)) {
HILOG_ERROR("Not sceneboard called, not allowed.");
return ERR_WRONG_INTERFACE_CALL;
}
@@ -4904,7 +4904,7 @@ void AbilityManagerService::UpdateMissionSnapShot(const sptr<IRemoteObject>& tok
}
auto isSaCall = AAFwk::PermissionVerification::GetInstance()->IsSACall();
if (!isSaCall) {
if(!CheckCallingTokenId(BUNDLE_NAME_LAUNCHER, GetUserId())) {
if (!CheckCallingTokenId(BUNDLE_NAME_LAUNCHER, GetUserId())) {
HILOG_ERROR("Not launcher called, not allowed.");
return;
}
@@ -41,7 +41,7 @@ export default class TipsServiceExtensionAbility extends extension {
top: globalThis.position.offsetY,
width: globalThis.position.width,
height: globalThis.position.height
}
};
if (winNum > 1) {
win.destroy();
winNum--;
@@ -154,7 +154,7 @@ int MockAbilityDelegatorStub::StartUserTest(const Want& want, const sptr<IRemote
return OHOS::ERR_OK;
}
int MockAbilityDelegatorStub::StopServiceAbility(const Want& want, int32_t userId, const sptr<IRemoteObject> &token)
int MockAbilityDelegatorStub::StopServiceAbility(const Want& want, int32_t userId, const sptr<IRemoteObject> &token)
{
return 0;
}