From 85a7dae391112fe3c3638e435efaa4172ed5784f Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 7 May 2021 14:34:14 +0100 Subject: file: Remove redundant value_or({}) --- Userland/Utilities/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Utilities/file.cpp') 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 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 {}; -- cgit v1.2.3