Skip to content

Commit

Permalink
LibIMAP: Remove needless conversion to DeprecatedString
Browse files Browse the repository at this point in the history
We're comparing the return value to StringViews right after, so there is
no need to do the conversion twice.
  • Loading branch information
vkoskiv authored and ADKaster committed Aug 12, 2023
1 parent 6128e85 commit c2ed154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibIMAP/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c2ed154

Please sign in to comment.