mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Avoid repetition when serializing grid track placement values
This commit is contained in:
parent
7643a079c0
commit
83143e3018
Notes:
github-actions[bot]
2025-03-19 01:09:09 +00:00
Author: https://github.com/tcl3
Commit: 83143e3018
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3987
6 changed files with 22 additions and 23 deletions
|
@ -22,8 +22,7 @@ String GridTrackPlacement::to_string() const
|
|||
builder.appendff("{} {}", *area_or_line.line_number, *area_or_line.name);
|
||||
} else if (area_or_line.line_number.has_value()) {
|
||||
builder.appendff("{}", *area_or_line.line_number);
|
||||
}
|
||||
if (area_or_line.name.has_value()) {
|
||||
} else if (area_or_line.name.has_value()) {
|
||||
builder.appendff("{}", *area_or_line.name);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue