pvs studio. fixed warning about duplicate condition

This commit is contained in:
Mike Bogdanov 2018-01-18 12:42:37 +03:00
parent 6402077ac2
commit 8d6d3b77c8

View File

@ -12781,7 +12781,7 @@ class basic_json
// passed iterators must belong to objects
if (JSON_UNLIKELY(not first.m_object->is_object()
or not first.m_object->is_object()))
or not last.m_object->is_object()))
{
JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects"));
}