mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:37:35 +00:00
file: Remove redundant value_or({})
This commit is contained in:
parent
a9fcdc767e
commit
85a7dae391
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue