We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c175cff commit 2421e10Copy full SHA for 2421e10
src/IndexParser.cpp
@@ -78,7 +78,7 @@ void IndexParser::parseIndex(cJSON *index, Index::Builder *builder,
78
79
bool IndexParser::getBoolean(cJSON *index, const char *field) const {
80
return cJSON_GetObjectItem(index, field)
81
- && strcmp("true", cJSON_GetObjectItem(index, field)->string);
+ && cJSON_GetObjectItem(index, field)->type == cJSON_True;
82
}
83
84
std::string IndexParser::getOrThrowStr(cJSON *index, const char *field) const {
0 commit comments