summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-02-26 18:08:27 -0500
committerLinus Groh <mail@linusgroh.de>2023-02-27 15:18:55 +0100
commit9f5343e29eb749da79f10023f39ffafc9eb17a01 (patch)
tree052f325590e445361435c87c9a4a47c6ecf57189 /Userland/Utilities
parentb87b1472e14816db5d6539351de8a4e2c0b166f6 (diff)
downloadserenity-9f5343e29eb749da79f10023f39ffafc9eb17a01.zip
file: Remove unnecessary DeprecatedString ctor call
path is already a DeprecatedString.
Diffstat (limited to 'Userland/Utilities')
-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 3901b004a7..f77c5d5f4a 100644
--- a/Userland/Utilities/file.cpp
+++ b/Userland/Utilities/file.cpp
@@ -189,7 +189,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto bytes = TRY(file->read(buffer));
auto file_name_guess = Core::guess_mime_type_based_on_filename(path);
auto mime_type = Core::guess_mime_type_based_on_sniffed_bytes(bytes).value_or(file_name_guess);
- auto human_readable_description = get_description_from_mime_type(mime_type, DeprecatedString(path)).value_or(mime_type);
+ auto human_readable_description = get_description_from_mime_type(mime_type, path).value_or(mime_type);
outln("{}: {}", path, flag_mime_only ? mime_type : human_readable_description);
}
}