去掉这个判断

Signed-off-by: liutuantuan <liutuantuan1@huawei.com>
This commit is contained in:
liutuantuan
2024-08-07 10:53:58 +08:00
parent 9ea0827f76
commit 73dc86cda0
-4
View File
@@ -528,10 +528,6 @@ int32_t DecodePCID(char *inputFile, char *outDirPath)
}
freePcidJsonInfo.strJson = cJSON_Print(freePcidJsonInfo.jsonRootObj);
if (freePcidJsonInfo.strJson == NULL) {
PRINT_ERR("cJSON_Print failed to generate JSON string\n");
return FreeAfterDecodePCID(freePcidJsonInfo, FREE_DECODE_PCID_ROOT_OUT, -1);
}
const char outputFileName[] = "pcid.json";
ret = ConvertedContextSaveAsFile(outDirPath, outputFileName, freePcidJsonInfo.strJson,