diff --git a/framework/jskitsimpl/data/unified_data_channel_napi.cpp b/framework/jskitsimpl/data/unified_data_channel_napi.cpp index d1c4bab0b7f37a17b527bbc1419473a943adaf36..ebfb1ebefa7b9bc77b1c98b42796db04375f0338 100644 --- a/framework/jskitsimpl/data/unified_data_channel_napi.cpp +++ b/framework/jskitsimpl/data/unified_data_channel_napi.cpp @@ -136,8 +136,7 @@ napi_value UnifiedDataChannelNapi::UpdateData(napi_env env, napi_callback_info i ctxt->unifiedData = unifiedDataNapi->value_; auto execute = [ctxt]() { QueryOption option = { .key = ctxt->key }; - auto status = UdmfClient::GetInstance().UpdateData(option, *(ctxt->unifiedData)); - ASSERT_WITH_ERRCODE(ctxt, status == E_OK, status, "UpdateData failed!"); + UdmfClient::GetInstance().UpdateData(option, *(ctxt->unifiedData)); }; return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); } @@ -180,7 +179,6 @@ napi_value UnifiedDataChannelNapi::QueryData(napi_env env, napi_callback_info in ASSERT_WITH_ERRCODE(ctxt, status == E_OK, status, "QueryData failed!"); }; auto output = [env, ctxt](napi_value &result) { - ASSERT_WITH_ERRCODE(ctxt, !ctxt->unifiedDataSet.empty(), E_ERROR, "unifiedDataSet is empty!"); ctxt->status = ConvertUnifiedDataSetToNapi(env, ctxt->unifiedDataSet, result); ASSERT_WITH_ERRCODE(ctxt, ctxt->status == napi_ok, E_ERROR, "ConvertUnifiedDataSetToNapi failed!"); };