codecheck

Signed-off-by: dengxiaoyu <dengxiaoyu6@huawei.com>
This commit is contained in:
dengxiaoyu 2024-08-06 21:50:07 +08:00
parent 38301eaf27
commit 0a84356814

View File

@ -457,10 +457,6 @@ bool GetOsInfoFromDM(const std::string &dmInfoEx, int32_t &osType, std::string &
osType = cJSON_GetObjectItemCaseSensitive(dataJson, PARAM_KEY_OS_TYPE)->valueint;
osVersion = std::string(cJSON_GetObjectItemCaseSensitive(dataJson, PARAM_KEY_OS_VERSION)->valuestring);
if (!cJSON_IsNumber(osType)) {
HILOGE("osType is invalid ");
break;
}
isSuccess = true;
} while (false);