mirror of
https://github.com/openharmony/js_sys_module.git
synced 2026-07-01 22:04:01 -04:00
@@ -238,7 +238,7 @@ namespace OHOS::Js_sys_module::Process {
|
||||
HILOG_ERROR("napi_create_reference is failed");
|
||||
return;
|
||||
}
|
||||
if (temp.empty()) {
|
||||
if (!temp.empty()) {
|
||||
size_t pos = events.find(temp);
|
||||
if (pos == std::string::npos) {
|
||||
HILOG_ERROR("illegal event");
|
||||
|
||||
Reference in New Issue
Block a user