|
@@ -168,17 +168,17 @@ static constexpr Array s_pattern_with_specialized_functions {
|
|
|
|
|
|
static ErrorOr<Optional<String>> get_description_from_mime_type(StringView mime, StringView path)
|
|
|
{
|
|
|
- auto const description = Core::get_description_from_mime_type(mime);
|
|
|
+ auto const mime_type = Core::get_mime_type_data(mime);
|
|
|
|
|
|
- if (!description.has_value())
|
|
|
+ if (!mime_type.has_value())
|
|
|
return OptionalNone {};
|
|
|
|
|
|
for (auto const& pattern : s_pattern_with_specialized_functions) {
|
|
|
if (mime.matches(pattern.matching_pattern))
|
|
|
- return pattern.details(*description, path);
|
|
|
+ return pattern.details(mime_type->description, path);
|
|
|
}
|
|
|
|
|
|
- return description_only(*description, path);
|
|
|
+ return description_only(mime_type->description, path);
|
|
|
}
|
|
|
|
|
|
ErrorOr<int> serenity_main(Main::Arguments arguments)
|