remove {} from one line if

This commit is contained in:
andrejlevkovitch 2020-06-04 21:15:08 +03:00 committed by Patrick Boettcher
parent 7554b4ca70
commit 0a83ee0c68

View File

@ -672,9 +672,8 @@ public:
attr = sch.find("format"); attr = sch.find("format");
if (attr != sch.end()) { if (attr != sch.end()) {
if (root_->format_check() == nullptr) { if (root_->format_check() == nullptr)
throw std::invalid_argument{"a format checker was not provided but a format keyword for this string is present: " + format_.second}; throw std::invalid_argument{"a format checker was not provided but a format keyword for this string is present: " + format_.second};
}
format_ = {true, attr.value()}; format_ = {true, attr.value()};
sch.erase(attr); sch.erase(attr);