mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-27 00:20:59 +00:00
[自提单][settings]送检前加固保障-告警清零
Signed-off-by: 杨云鹏 <yangyunpeng7@huawei.com>
This commit is contained in:
parent
ca2d0f7269
commit
6d27e54118
@ -320,10 +320,8 @@ napi_value napi_get_uri(napi_env env, napi_callback_info info)
|
||||
napi_deferred deferred;
|
||||
if (napi_create_promise(env, &deferred, &promise) != napi_ok) {
|
||||
SETTING_LOG_ERROR("napi_create_promise error");
|
||||
if (asyncCallbackInfo != nullptr) {
|
||||
delete asyncCallbackInfo;
|
||||
asyncCallbackInfo = nullptr;
|
||||
}
|
||||
delete asyncCallbackInfo;
|
||||
asyncCallbackInfo = nullptr;
|
||||
return wrap_void_to_js(env);
|
||||
}
|
||||
|
||||
@ -352,10 +350,8 @@ napi_value napi_get_uri(napi_env env, napi_callback_info info)
|
||||
&asyncCallbackInfo->asyncWork);
|
||||
if (napi_queue_async_work(env, asyncCallbackInfo->asyncWork) != napi_ok) {
|
||||
SETTING_LOG_ERROR("napi_queue_async_work error");
|
||||
if (asyncCallbackInfo != nullptr) {
|
||||
delete asyncCallbackInfo;
|
||||
asyncCallbackInfo = nullptr;
|
||||
}
|
||||
delete asyncCallbackInfo;
|
||||
asyncCallbackInfo = nullptr;
|
||||
}
|
||||
SETTING_LOG_INFO("uri p_m end asy work");
|
||||
return promise;
|
||||
|
Loading…
Reference in New Issue
Block a user