]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Remove redundant cycle
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Aug 2021 11:24:38 +0000 (12:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Aug 2021 11:24:38 +0000 (12:24 +0100)
src/libserver/html/html_url.cxx

index 781b4bb592ce079d86bbc35e3ac5a3b6d46619f9..22f201f8cdc5f3c99e7ed5141fdb7745142411c1 100644 (file)
@@ -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);