修复OH_ArkUI_GetDrawableDescriptorFromResourceNapiValue接口用例失败问题

Signed-off-by: wangxinqiang007 <wangxinqiang2@huawei.com>
This commit is contained in:
wangxinqiang007 2024-07-31 14:34:40 +08:00
parent be7df5164a
commit 2ab176e295

View File

@ -202,9 +202,6 @@ int32_t OH_ArkUI_GetDrawableDescriptorFromResourceNapiValue(
new ArkUI_DrawableDescriptor { nullptr, nullptr, 0, nullptr, nullptr, nullptr, nullptr };
drawable->resource = std::make_shared<ArkUI_Resource>();
parseApi(value, drawable->resource.get());
if (drawable->resource->src == "") {
return OHOS::Ace::ERROR_CODE_PARAM_INVALID;
}
*drawableDescriptor = drawable;
return OHOS::Ace::ERROR_CODE_NO_ERROR;
}