diff --git a/frameworks/native/runtime/js_runtime.cpp b/frameworks/native/runtime/js_runtime.cpp index ecf9fa50d6db74f62f37812ab72af641706fefa4..5084526ede9fbf5bd709ad4b80e2a2bbcee24dd7 100644 --- a/frameworks/native/runtime/js_runtime.cpp +++ b/frameworks/native/runtime/js_runtime.cpp @@ -1710,14 +1710,12 @@ std::vector JsRuntime::GetSystemKitsMap(uint32_t version) continue; } uint32_t sinceVersion = jsonObject.at(SINCE_VERSION).get(); - if (version >= sinceVersion) { - panda::HmsMap hmsMap = { - .originalPath = jsonObject.at(NAMESPACE).get(), - .targetPath = jsonObject.at(TARGET_OHM).get(), - .sinceVersion = sinceVersion - }; - systemKitsMap.emplace_back(hmsMap); - } + panda::HmsMap hmsMap = { + .originalPath = jsonObject.at(NAMESPACE).get(), + .targetPath = jsonObject.at(TARGET_OHM).get(), + .sinceVersion = sinceVersion + }; + systemKitsMap.emplace_back(hmsMap); } TAG_LOGD(AAFwkTag::JSRUNTIME, "The size of the map is %{public}zu", systemKitsMap.size()); return systemKitsMap;