Skip to content

Commit d167f11

Browse files
[ML] Use ObjectEmpty() on rapidjson object instead of Empty()
1 parent 877dccb commit d167f11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/CDetectionRulesJsonParser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ bool CDetectionRulesJsonParser::parseRuleScope(const rapidjson::Value& ruleObjec
155155
return false;
156156
}
157157

158-
if (scopeObject.Empty()) {
158+
if (scopeObject.ObjectEmpty()) {
159159
LOG_ERROR(<< "Scope must not be empty");
160160
return false;
161161
}

0 commit comments

Comments
 (0)