Replace if( with if (

This commit is contained in:
Gunnar Beutner 2015-02-11 15:47:45 +01:00
parent 8ca57cba03
commit cb6f1043e1
8 changed files with 18 additions and 16 deletions

View File

@ -238,6 +238,7 @@ void GraphiteWriter::ValidateNameTemplates(const String& location, const Graphit
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
location + ": Closing $ not found in macro format string '" + object->GetHostNameTemplate() + "'.", object->GetDebugInfo()));
}
if (!Utility::ValidateMacroString(object->GetServiceNameTemplate())) {
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
location + ": Closing $ not found in macro format string '" + object->GetServiceNameTemplate() + "'.", object->GetDebugInfo()));

View File

@ -146,6 +146,7 @@ void PerfdataWriter::ValidateFormatTemplates(const String& location, const Perfd
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
location + ": Closing $ not found in macro format string '" + object->GetHostFormatTemplate() + "'.", object->GetDebugInfo()));
}
if (!Utility::ValidateMacroString(object->GetServiceFormatTemplate())) {
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
location + ": Closing $ not found in macro format string '" + object->GetHostFormatTemplate() + "'.", object->GetDebugInfo()));