mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
AK+Everywhere: Remove JsonValue APIs with implicit default values
This commit is contained in:
parent
c49819cced
commit
b5f1a48a7c
16 changed files with 132 additions and 106 deletions
|
@ -23,7 +23,7 @@ struct PropertyDeserializer<T> {
|
|||
{
|
||||
if (!value.is_integer<T>())
|
||||
return Error::from_string_literal("Value is either not an integer or out of range for requested type");
|
||||
return value.to_number<T>();
|
||||
return value.as_integer<T>();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue