Skip to content

Commit

Permalink
invert conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
abeaucha committed Oct 2, 2024
1 parent f22c989 commit e15121b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions six/modules/c++/six/source/XMLControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,10 @@ static void validate_(const xml::lite::Element& rootElement,
validator.validate(strPrettyXml, uri.value, errors);

// Looks like we validated; be sure there aren't any errors
if (errors.empty())
if (! errors.empty())
{
return; // success!
log_any_errors_and_throw(errors, uniq_schemas, log);
}

// log any error found and throw
log_any_errors_and_throw(errors, uniq_schemas, log);
}

static void validate_(const xml::lite::Document& doc,
Expand Down

0 comments on commit e15121b

Please sign in to comment.