1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

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.
This commit is contained in:
Valtteri Koskivuori 2023-07-28 22:39:29 +03:00 committed by Andrew Kaster
parent 6128e859ac
commit c2ed1547ba

View file

@ -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);