mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibWeb: Make serializing CSS Parser types infallible
This commit is contained in:
parent
846c719e49
commit
ccfe197e5a
12 changed files with 57 additions and 57 deletions
|
@ -17,15 +17,15 @@ Block::Block(Token token, Vector<ComponentValue>&& values)
|
|||
|
||||
Block::~Block() = default;
|
||||
|
||||
ErrorOr<String> Block::to_string() const
|
||||
String Block::to_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
||||
TRY(builder.try_append(m_token.bracket_string()));
|
||||
TRY(builder.try_join(' ', m_values));
|
||||
TRY(builder.try_append(m_token.bracket_mirror_string()));
|
||||
builder.append(m_token.bracket_string());
|
||||
builder.join(' ', m_values);
|
||||
builder.append(m_token.bracket_mirror_string());
|
||||
|
||||
return builder.to_string();
|
||||
return MUST(builder.to_string());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue