mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
LibIPC: Remove uneeded NumericLimit<u32>::max check for ByteString
This is no longer needed now that ByteString does not have a null state.
This commit is contained in:
parent
55cd53e4ed
commit
4f30d50dc9
Notes:
sideshowbarker
2024-07-17 18:06:52 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/4f30d50dc9 Pull-request: https://github.com/SerenityOS/serenity/pull/24220 Reviewed-by: https://github.com/kennethmyhra
@ -34,8 +34,6 @@ template<>
|
||||
ErrorOr<ByteString> decode(Decoder& decoder)
|
||||
{
|
||||
auto length = TRY(decoder.decode_size());
|
||||
if (length == NumericLimits<u32>::max())
|
||||
return ByteString {};
|
||||
if (length == 0)
|
||||
return ByteString::empty();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user