From 63c4bdf5dc9e5be136987290b3d0f45b4d644d92 Mon Sep 17 00:00:00 2001 From: Karol Baraniecki Date: Mon, 6 Mar 2023 20:30:39 +0100 Subject: [PATCH] BrowserSettings: Use fallible version of StringBuilder::to_byte_buffer --- .../BrowserSettings/ContentFilterSettingsWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.cpp b/Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.cpp index e54b9be917..5e436fdf2f 100644 --- a/Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.cpp +++ b/Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.cpp @@ -50,7 +50,7 @@ ErrorOr 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 {}; }