Cleanup extra curly braces
This commit is contained in:
Родитель
b07860d5bf
Коммит
a929795c6f
|
@ -535,7 +535,7 @@ TaskState ModifiedResponse<TaskState>::parse(response::Value&& value)
|
|||
{
|
||||
if (!value.maybe_enum())
|
||||
{
|
||||
throw std::logic_error { R"ex(not a valid TaskState value)ex" };
|
||||
throw std::logic_error { R"ex(not a valid TaskState value)ex" };
|
||||
}
|
||||
|
||||
const auto result = internal::sorted_map_lookup<internal::shorter_or_less>(
|
||||
|
@ -544,7 +544,7 @@ TaskState ModifiedResponse<TaskState>::parse(response::Value&& value)
|
|||
|
||||
if (!result)
|
||||
{
|
||||
throw std::logic_error { { R"ex(not a valid TaskState value)ex" } };
|
||||
throw std::logic_error { R"ex(not a valid TaskState value)ex" };
|
||||
}
|
||||
|
||||
return *result;
|
||||
|
|
|
@ -147,7 +147,7 @@ TaskState ModifiedResponse<TaskState>::parse(response::Value&& value)
|
|||
{
|
||||
if (!value.maybe_enum())
|
||||
{
|
||||
throw std::logic_error { R"ex(not a valid TaskState value)ex" };
|
||||
throw std::logic_error { R"ex(not a valid TaskState value)ex" };
|
||||
}
|
||||
|
||||
const auto result = internal::sorted_map_lookup<internal::shorter_or_less>(
|
||||
|
@ -156,7 +156,7 @@ TaskState ModifiedResponse<TaskState>::parse(response::Value&& value)
|
|||
|
||||
if (!result)
|
||||
{
|
||||
throw std::logic_error { { R"ex(not a valid TaskState value)ex" } };
|
||||
throw std::logic_error { R"ex(not a valid TaskState value)ex" };
|
||||
}
|
||||
|
||||
return *result;
|
||||
|
|
|
@ -125,7 +125,7 @@ TaskState ModifiedResponse<TaskState>::parse(response::Value&& value)
|
|||
{
|
||||
if (!value.maybe_enum())
|
||||
{
|
||||
throw std::logic_error { R"ex(not a valid TaskState value)ex" };
|
||||
throw std::logic_error { R"ex(not a valid TaskState value)ex" };
|
||||
}
|
||||
|
||||
const auto result = internal::sorted_map_lookup<internal::shorter_or_less>(
|
||||
|
@ -134,7 +134,7 @@ TaskState ModifiedResponse<TaskState>::parse(response::Value&& value)
|
|||
|
||||
if (!result)
|
||||
{
|
||||
throw std::logic_error { { R"ex(not a valid TaskState value)ex" } };
|
||||
throw std::logic_error { R"ex(not a valid TaskState value)ex" };
|
||||
}
|
||||
|
||||
return *result;
|
||||
|
|
|
@ -908,7 +908,7 @@ response::Value ModifiedVariable<)cpp"
|
|||
{
|
||||
if (!value.maybe_enum())
|
||||
{
|
||||
throw std::logic_error { R"ex(not a valid )cpp"
|
||||
throw std::logic_error { R"ex(not a valid )cpp"
|
||||
<< enumType->name() << R"cpp( value)ex" };
|
||||
}
|
||||
|
||||
|
@ -919,8 +919,8 @@ response::Value ModifiedVariable<)cpp"
|
|||
|
||||
if (!result)
|
||||
{
|
||||
throw std::logic_error { { R"ex(not a valid )cpp"
|
||||
<< enumType->name() << R"cpp( value)ex" } };
|
||||
throw std::logic_error { R"ex(not a valid )cpp"
|
||||
<< enumType->name() << R"cpp( value)ex" };
|
||||
}
|
||||
|
||||
return *result;
|
||||
|
|
Загрузка…
Ссылка в новой задаче