mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
AK: Remove infallible version of StringBuilder::to_byte_buffer
Also drop the try_ prefix from the fallible function, as it is no longer needed to distinguish the two.
This commit is contained in:
parent
ad5e8f2742
commit
e76394d96c
13 changed files with 21 additions and 28 deletions
|
@ -182,7 +182,7 @@ ErrorOr<void> Client::send_data(StringView data)
|
|||
}
|
||||
}
|
||||
|
||||
auto builder_contents = TRY(builder.try_to_byte_buffer());
|
||||
auto builder_contents = TRY(builder.to_byte_buffer());
|
||||
TRY(m_socket->write(builder_contents));
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue