mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03:00
file: Remove redundant value_or({})
This commit is contained in:
parent
a9fcdc767e
commit
85a7dae391
Notes:
sideshowbarker
2024-07-18 18:36:14 +09:00
@ -59,7 +59,7 @@ static Optional<String> get_description_from_mime_type(const String& mime, const
|
||||
{
|
||||
#define V(var_name, mime_type, description, details) \
|
||||
if (String(mime_type) == mime) \
|
||||
return details(String(description), path).value_or({});
|
||||
return details(String(description), path);
|
||||
ENUMERATE_DESCRIPTION_CONTENTS(V);
|
||||
#undef V
|
||||
return {};
|
||||
|
Loading…
Reference in New Issue
Block a user