From c2ed1547ba3be06b1a77ad2045be95facb22b7c0 Mon Sep 17 00:00:00 2001 From: Valtteri Koskivuori Date: Fri, 28 Jul 2023 22:39:29 +0300 Subject: [PATCH] LibIMAP: Remove needless conversion to DeprecatedString We're comparing the return value to StringViews right after, so there is no need to do the conversion twice. --- Userland/Libraries/LibIMAP/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibIMAP/Parser.cpp b/Userland/Libraries/LibIMAP/Parser.cpp index 6b97c434c3..cc0567cf6f 100644 --- a/Userland/Libraries/LibIMAP/Parser.cpp +++ b/Userland/Libraries/LibIMAP/Parser.cpp @@ -130,7 +130,7 @@ void Parser::parse_untagged() auto number = try_parse_number(); if (number.has_value()) { consume(" "sv); - auto data_type = parse_atom().to_deprecated_string(); + auto data_type = parse_atom(); if (data_type == "EXISTS"sv) { m_response.data().set_exists(number.value()); consume("\r\n"sv);