mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
LibWeb: Make StyleValue::to_string() infallible
This commit is contained in:
parent
ccfe197e5a
commit
7fe97ee6c5
112 changed files with 425 additions and 430 deletions
|
@ -13,7 +13,7 @@ ValueComparingNonnullRefPtr<GridAutoFlowStyleValue> GridAutoFlowStyleValue::crea
|
|||
return adopt_ref(*new GridAutoFlowStyleValue(axis, dense));
|
||||
}
|
||||
|
||||
ErrorOr<String> GridAutoFlowStyleValue::to_string() const
|
||||
String GridAutoFlowStyleValue::to_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
if (m_row)
|
||||
|
@ -22,7 +22,7 @@ ErrorOr<String> GridAutoFlowStyleValue::to_string() const
|
|||
builder.append("column"sv);
|
||||
if (m_dense)
|
||||
builder.append(" dense"sv);
|
||||
return builder.to_string();
|
||||
return MUST(builder.to_string());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue