Commit b210f2db by Niels Lohmann

💄 minor refactoring

parent 0164b10e
...@@ -3036,10 +3036,8 @@ class basic_json ...@@ -3036,10 +3036,8 @@ class basic_json
{ {
return m_value.boolean; return m_value.boolean;
} }
else
{ JSON_THROW(std::domain_error("type must be boolean, but is " + type_name()));
JSON_THROW(std::domain_error("type must be boolean, but is " + type_name()));
}
} }
/// get a pointer to the value (object) /// get a pointer to the value (object)
......
...@@ -3036,10 +3036,8 @@ class basic_json ...@@ -3036,10 +3036,8 @@ class basic_json
{ {
return m_value.boolean; return m_value.boolean;
} }
else
{ JSON_THROW(std::domain_error("type must be boolean, but is " + type_name()));
JSON_THROW(std::domain_error("type must be boolean, but is " + type_name()));
}
} }
/// get a pointer to the value (object) /// get a pointer to the value (object)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment