Переглянути джерело

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.
Valtteri Koskivuori 1 рік тому
батько
коміт
c2ed1547ba
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Userland/Libraries/LibIMAP/Parser.cpp

+ 1 - 1
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);