From: Vsevolod Stakhov Date: Thu, 5 Aug 2021 11:24:38 +0000 (+0100) Subject: [Minor] Remove redundant cycle X-Git-Tag: 3.0~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4ec1883f7b8b60ff6d548eb2d1d8dca040346f5;p=thirdparty%2Frspamd.git [Minor] Remove redundant cycle --- diff --git a/src/libserver/html/html_url.cxx b/src/libserver/html/html_url.cxx index 781b4bb592..22f201f8cd 100644 --- a/src/libserver/html/html_url.cxx +++ b/src/libserver/html/html_url.cxx @@ -152,11 +152,7 @@ html_url_is_phished(rspamd_mempool_t *pool, * We have some url at some offset, so we need to check what is * at the start of the text */ - for (const auto p : text_data) { - if (!g_ascii_isspace(p)) { - return std::nullopt; - } - } + return std::nullopt; } text_url = rspamd_mempool_alloc0_type (pool, struct rspamd_url);