AK+Userland: Remove nullability feature for the ByteBuffer type

Nobody seems to use this particular feature, in fact there were some
bugs which were uncovered by removing operator bool.
This commit is contained in:
Gunnar Beutner 2021-05-16 08:47:46 +02:00 committed by Andreas Kling
commit 53d0150827
Notes: sideshowbarker 2024-07-18 18:01:38 +09:00
16 changed files with 12 additions and 36 deletions

View file

@ -283,7 +283,7 @@ void Job::on_socket_connected()
}
auto payload = receive(read_size);
if (!payload) {
if (payload.is_empty()) {
if (eof()) {
finish_up();
return IterationDecision::Break;