mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
BrowserSettings: Use fallible version of StringBuilder::to_byte_buffer
This commit is contained in:
parent
b4b283670d
commit
63c4bdf5dc
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ ErrorOr<void> DomainListModel::save()
|
|||
TRY(builder.try_appendff("{}\n", domain));
|
||||
|
||||
auto file = TRY(Core::File::open(filter_list_file_path(), Core::File::OpenMode::Write));
|
||||
TRY(file->write(builder.to_byte_buffer().bytes()));
|
||||
TRY(file->write(TRY(builder.try_to_byte_buffer()).bytes()));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue