summaryrefslogtreecommitdiff
path: root/Userland/Utilities/file.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-07 14:34:14 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-07 15:43:23 +0100
commit85a7dae391112fe3c3638e435efaa4172ed5784f (patch)
tree3d26e244a540045201e99d62a49e292911563480 /Userland/Utilities/file.cpp
parenta9fcdc767e7a2a37147bb14b02098e620dec47f7 (diff)
downloadserenity-85a7dae391112fe3c3638e435efaa4172ed5784f.zip
file: Remove redundant value_or({})
Diffstat (limited to 'Userland/Utilities/file.cpp')
-rw-r--r--Userland/Utilities/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/file.cpp b/Userland/Utilities/file.cpp
index 0f16e50dde..7e53361767 100644
--- a/Userland/Utilities/file.cpp
+++ b/Userland/Utilities/file.cpp
@@ -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 {};