1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

file: Remove redundant value_or({})

This commit is contained in:
Linus Groh 2021-05-07 14:34:14 +01:00
parent a9fcdc767e
commit 85a7dae391

View file

@ -59,7 +59,7 @@ static Optional<String> get_description_from_mime_type(const String& mime, const
{ {
#define V(var_name, mime_type, description, details) \ #define V(var_name, mime_type, description, details) \
if (String(mime_type) == mime) \ if (String(mime_type) == mime) \
return details(String(description), path).value_or({}); return details(String(description), path);
ENUMERATE_DESCRIPTION_CONTENTS(V); ENUMERATE_DESCRIPTION_CONTENTS(V);
#undef V #undef V
return {}; return {};