diff --git a/frameworks/js/napi/abilityDataUriUtils/ability_data_uri_utils.js b/frameworks/js/napi/abilityDataUriUtils/ability_data_uri_utils.js index d6b3517d21..fdefa846c3 100644 --- a/frameworks/js/napi/abilityDataUriUtils/ability_data_uri_utils.js +++ b/frameworks/js/napi/abilityDataUriUtils/ability_data_uri_utils.js @@ -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 { diff --git a/frameworks/js/napi/callee/callee.js b/frameworks/js/napi/callee/callee.js index 86d5c80162..05781f9c58 100644 --- a/frameworks/js/napi/callee/callee.js +++ b/frameworks/js/napi/callee/callee.js @@ -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)) { diff --git a/frameworks/js/napi/caller/caller.js b/frameworks/js/napi/caller/caller.js index 64462d0b83..130259d6f2 100644 --- a/frameworks/js/napi/caller/caller.js +++ b/frameworks/js/napi/caller/caller.js @@ -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 { diff --git a/frameworks/native/appkit/ability_delegator/runner_runtime/delegator_mgmt.js b/frameworks/native/appkit/ability_delegator/runner_runtime/delegator_mgmt.js index 5e320764a0..444ee1af27 100644 --- a/frameworks/native/appkit/ability_delegator/runner_runtime/delegator_mgmt.js +++ b/frameworks/native/appkit/ability_delegator/runner_runtime/delegator_mgmt.js @@ -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'); diff --git a/services/abilitymgr/src/ability_manager_service.cpp b/services/abilitymgr/src/ability_manager_service.cpp index e0ee1df30e..f999958c84 100644 --- a/services/abilitymgr/src/ability_manager_service.cpp +++ b/services/abilitymgr/src/ability_manager_service.cpp @@ -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& 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; } diff --git a/services/dialog_ui/ams_system_dialog/entry/src/main/ets/ServiceExtAbility/TipsServiceExtAbility.ts b/services/dialog_ui/ams_system_dialog/entry/src/main/ets/ServiceExtAbility/TipsServiceExtAbility.ts index 3fa73901fa..12718709ff 100644 --- a/services/dialog_ui/ams_system_dialog/entry/src/main/ets/ServiceExtAbility/TipsServiceExtAbility.ts +++ b/services/dialog_ui/ams_system_dialog/entry/src/main/ets/ServiceExtAbility/TipsServiceExtAbility.ts @@ -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--; diff --git a/test/mock/frameworks_kits_appkit_native_test/ability_delegator/mock_ability_delegator_stub.cpp b/test/mock/frameworks_kits_appkit_native_test/ability_delegator/mock_ability_delegator_stub.cpp index d844d08d9c..37a89500dc 100644 --- a/test/mock/frameworks_kits_appkit_native_test/ability_delegator/mock_ability_delegator_stub.cpp +++ b/test/mock/frameworks_kits_appkit_native_test/ability_delegator/mock_ability_delegator_stub.cpp @@ -154,7 +154,7 @@ int MockAbilityDelegatorStub::StartUserTest(const Want& want, const sptr &token) +int MockAbilityDelegatorStub::StopServiceAbility(const Want& want, int32_t userId, const sptr &token) { return 0; }