mirror of
https://github.com/nlohmann/json.git
synced 2026-10-10 00:17:13 +00:00
💄 minor refactoring
This commit is contained in:
1 parent
0164b10e10
commit
b210f2dbf4
2 files changed
+4
-8
No files matched your search
+2
-4
@@ -3036,10 +3036,8 @@ class basic_json
|
||||
{
|
||||
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)
|
||||
|
||||
+2
-4
@@ -3036,10 +3036,8 @@ class basic_json
|
||||
{
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user