mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
ircd::json: Fix an empty string test.
This commit is contained in:
parent
80931e4e86
commit
42246d8d5f
1 changed files with 1 additions and 1 deletions
|
@ -1374,7 +1374,7 @@ const
|
|||
!bool(integer);
|
||||
|
||||
case STRING:
|
||||
return !string || !len || string_view{*this} == empty_string;
|
||||
return !string || !len || (serial && string_view{*this} == empty_string);
|
||||
|
||||
case OBJECT:
|
||||
return serial? !len || string_view{*this} == empty_object:
|
||||
|
|
Loading…
Reference in a new issue