mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 20:27:35 +00:00
LibJS+LibIMAP: Use the new Optional<U>(Optional<T>) constructor
These look much nicer than these repeated ternaries :^)
This commit is contained in:
parent
a3a4d0aea2
commit
ace36681ff
7 changed files with 23 additions and 28 deletions
|
@ -725,9 +725,9 @@ static NonnullOwnPtr<Interface> parse_interface(StringView filename, StringView
|
|||
DictionaryMember member {
|
||||
required,
|
||||
move(type),
|
||||
move(name),
|
||||
name,
|
||||
move(extended_attributes),
|
||||
default_value.has_value() ? default_value.value() : Optional<String> {},
|
||||
Optional<String>(move(default_value)),
|
||||
};
|
||||
dictionary.members.append(move(member));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue