[自提单][settings]送检前加固保障-告警清零

Signed-off-by: 杨云鹏 <yangyunpeng7@huawei.com>
This commit is contained in:
侯志雄 2024-08-27 18:55:11 +08:00
parent ca2d0f7269
commit 6d27e54118

View File

@ -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;