mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +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
|
@ -15,7 +15,7 @@ ErrorOr<ByteBuffer> GeminiRequest::to_raw_request() const
|
|||
StringBuilder builder;
|
||||
TRY(builder.try_append(m_url.to_deprecated_string()));
|
||||
TRY(builder.try_append("\r\n"sv));
|
||||
return builder.try_to_byte_buffer();
|
||||
return builder.to_byte_buffer();
|
||||
}
|
||||
|
||||
Optional<GeminiRequest> GeminiRequest::from_raw_request(ByteBuffer const& raw_request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue