mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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
1 changed files with 0 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue