mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-07-19 10:16:08 -04:00
Modify Util warehouse base64 code
Modify function parameters, delete a judgment issue:https://gitee.com/openharmony/js_api_module/issues/I582UQ Signed-off-by: xllify <lixinlong18@huawei.com>
This commit is contained in:
+1
-3
@@ -83,9 +83,7 @@ namespace OHOS::Util {
|
||||
}
|
||||
const char *encString = reinterpret_cast<const char*>(ret);
|
||||
napi_value resultStr = nullptr;
|
||||
if (strlen(encString) != 0) {
|
||||
NAPI_CALL(env, napi_create_string_utf8(env, encString, strlen(encString), &resultStr));
|
||||
}
|
||||
napi_create_string_utf8(env, encString, strlen(encString), &resultStr);
|
||||
FreeMemory(ret);
|
||||
return resultStr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user