mirror of
https://github.com/openharmony/ace_engine_lite.git
synced 2026-07-19 13:31:06 -04:00
!525 去除未使用的变量 syscapStrSize
Merge pull request !525 from chenyude/caniuse-lite
This commit is contained in:
@@ -63,6 +63,10 @@ jerry_value_t SyscapModule::CheckSyscap(const jerry_value_t func,
|
||||
|
||||
jerry_char_t buffer[SYSCAP_BUFFER_SIZE] = {0};
|
||||
jerry_size_t syscapStrSize = jerry_string_to_utf8_char_buffer(strVal, buffer, length);
|
||||
if (syscapStrSize == 0) {
|
||||
jerry_release_value(strVal);
|
||||
return jerry_create_boolean(false);
|
||||
}
|
||||
const char *syscapString = (char *)buffer;
|
||||
bool ret = HasSystemCapability(syscapString);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user