Co-authored-by: Andrey Filipenkov <[email protected]>
@@ -587,7 +587,7 @@ bool JsonParser::error(const std::string & message, bool warning)
std::ostringstream stream;
std::string type(warning ? " warning: " : " error: ");
- if(errors != "")
+ if(!errors.empty())
{
// only add the line breaks between error messages so we don't have a trailing line break
stream << "\n";