!4602 删除多余缩进

Merge pull request !4602 from Lotol/master
This commit is contained in:
openharmony_ci 2023-08-22 01:56:27 +00:00 committed by Gitee
commit 8487ec2c1f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -337,7 +337,7 @@ ErrCode ParamsProcessIsDefaultApplicationSync(napi_env env, napi_callback_info i
BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR);
return ERROR_PARAM_CHECK_ERROR; return ERROR_PARAM_CHECK_ERROR;
} }
for (size_t i = 0; i < args.GetArgc(); ++i) { for (size_t i = 0; i < args.GetMaxArgc(); ++i) {
if (i == ARGS_POS_ZERO) { if (i == ARGS_POS_ZERO) {
if (!ParseType(env, args[i], type)) { if (!ParseType(env, args[i], type)) {
APP_LOGE("type %{public}s invalid", type.c_str()); APP_LOGE("type %{public}s invalid", type.c_str());
@ -506,7 +506,7 @@ ErrCode ParamsProcessGetDefaultApplicationSync(napi_env env, napi_callback_info
BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR); BusinessError::ThrowTooFewParametersError(env, ERROR_PARAM_CHECK_ERROR);
return ERROR_PARAM_CHECK_ERROR; return ERROR_PARAM_CHECK_ERROR;
} }
for (size_t i = 0; i < args.GetArgc(); ++i) { for (size_t i = 0; i < args.GetMaxArgc(); ++i) {
if (i == ARGS_POS_ZERO) { if (i == ARGS_POS_ZERO) {
if (!ParseType(env, args[ARGS_POS_ZERO], type)) { if (!ParseType(env, args[ARGS_POS_ZERO], type)) {
APP_LOGE("type %{public}s invalid", type.c_str()); APP_LOGE("type %{public}s invalid", type.c_str());
@ -689,7 +689,7 @@ ErrCode ParamsProcessSetDefaultApplicationSync(napi_env env, napi_callback_info
return ERROR_PARAM_CHECK_ERROR; return ERROR_PARAM_CHECK_ERROR;
} }
for (size_t i = 0; i < args.GetArgc(); ++i) { for (size_t i = 0; i < args.GetMaxArgc(); ++i) {
if (i == ARGS_POS_ZERO) { if (i == ARGS_POS_ZERO) {
if (!ParseType(env, args[i], type)) { if (!ParseType(env, args[i], type)) {
APP_LOGE("type %{public}s invalid", type.c_str()); APP_LOGE("type %{public}s invalid", type.c_str());
@ -903,7 +903,7 @@ napi_value ResetDefaultApplicationSync(napi_env env, napi_callback_info info)
if (ParamsProcessResetDefaultApplicationSync(env, info, type, userId) != ERR_OK) { if (ParamsProcessResetDefaultApplicationSync(env, info, type, userId) != ERR_OK) {
return nRet; return nRet;
} }
auto defaultAppProxy = GetDefaultAppProxy(); auto defaultAppProxy = GetDefaultAppProxy();
if (defaultAppProxy == nullptr) { if (defaultAppProxy == nullptr) {
napi_value error = BusinessError::CreateCommonError(env, ERROR_BUNDLE_SERVICE_EXCEPTION, napi_value error = BusinessError::CreateCommonError(env, ERROR_BUNDLE_SERVICE_EXCEPTION,