file: Remove redundant value_or({})

This commit is contained in:
Linus Groh 2021-05-07 14:34:14 +01:00
parent a9fcdc767e
commit 85a7dae391
Notes: sideshowbarker 2024-07-18 18:36:14 +09:00

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) \
if (String(mime_type) == mime) \
return details(String(description), path).value_or({});
return details(String(description), path);
ENUMERATE_DESCRIPTION_CONTENTS(V);
#undef V
return {};