Fix warning.

This commit is contained in:
levlam 2022-06-03 12:29:31 +03:00
parent 492a84d52b
commit e86b323de9

View File

@ -711,7 +711,7 @@ static bool tolower_begins_with(Slice str, Slice prefix) {
Result<string> LinkManager::check_link(CSlice link, bool http_only, bool https_only) {
auto result = check_link_impl(link, http_only, https_only);
if (result.is_ok()) {
return std::move(result);
return result;
}
auto error = result.move_as_error();
if (check_utf8(link)) {