1
Fork 0
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:
Karol Baraniecki 2023-03-06 20:30:39 +01:00 committed by Linus Groh
parent b4b283670d
commit 63c4bdf5dc

View file

@ -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 {};
}