1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:17:44 +00:00

LibWeb: Make Serialize functions infallible

This commit is contained in:
Sam Atkins 2023-08-22 12:05:44 +01:00 committed by Sam Atkins
parent 788c2c5a8d
commit b5893ee115
10 changed files with 95 additions and 105 deletions

View file

@ -75,7 +75,7 @@ ErrorOr<String> FilterValueListStyleValue::to_string() const
TRY(builder.try_appendff(" {}", TRY(drop_shadow.radius->to_string())));
if (drop_shadow.color.has_value()) {
TRY(builder.try_append(' '));
TRY(serialize_a_srgb_value(builder, *drop_shadow.color));
serialize_a_srgb_value(builder, *drop_shadow.color);
}
return {};
},