mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2025-02-17 04:49:02 +00:00
codecheck
Signed-off-by: dengxiaoyu <dengxiaoyu6@huawei.com>
This commit is contained in:
parent
38301eaf27
commit
0a84356814
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user