Skip to content
Snippets Groups Projects
Commit b3eae44a authored by Jakob Olsson's avatar Jakob Olsson
Browse files

remove redundant error check

parent 715e333b
No related branches found
No related tags found
No related merge requests found
...@@ -157,9 +157,6 @@ bool schema_validator_validate_jobj(struct json_object *j_object, const char *ob ...@@ -157,9 +157,6 @@ bool schema_validator_validate_jobj(struct json_object *j_object, const char *ob
goto out; goto out;
sch = json::parse(s); sch = json::parse(s);
if (!sch)
goto out;
if (s_object->definitions) { if (s_object->definitions) {
json definitions = json::parse(s_object->definitions); json definitions = json::parse(s_object->definitions);
sch += json::object_t::value_type("definitions", definitions); sch += json::object_t::value_type("definitions", definitions);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment