update napi/settings/napi_settings_observer.cpp.

Signed-off-by: chenlang <chenlang28@h-partners.com>
This commit is contained in:
chenlang 2023-12-18 09:23:10 +00:00 committed by Gitee
parent c00fce1045
commit 233cad5ca8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -120,8 +120,6 @@ namespace Settings {
NAPI_ASSERT(env, valueType == napi_string, "Wrong argument[1] type. String expected.");
NAPI_CALL(env, napi_typeof(env, args[PARAM2], &valueType));
NAPI_ASSERT(env, valueType == napi_string, "Wrong argument[2] type. String expected.");
NAPI_CALL(env, napi_typeof(env, args[PARAM3], &valueType));
NAPI_ASSERT(env, valueType == napi_object, "Wrong argument[3] type. String expected.");
bool stageMode = false;
napi_status status = OHOS::AbilityRuntime::IsStageContext(env, args[PARAM0], stageMode);