diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-05 12:24:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-05 12:24:38 +0100 |
commit | c4ec1883f7b8b60ff6d548eb2d1d8dca040346f5 (patch) | |
tree | 4ddf0a7960a19dbb91d9fb3f3aa8740544235c95 | |
parent | 6c2d6e771a1f3078863938ac63e597d22c16c55d (diff) | |
download | rspamd-c4ec1883f7b8b60ff6d548eb2d1d8dca040346f5.tar.gz rspamd-c4ec1883f7b8b60ff6d548eb2d1d8dca040346f5.zip |
[Minor] Remove redundant cycle
-rw-r--r-- | src/libserver/html/html_url.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libserver/html/html_url.cxx b/src/libserver/html/html_url.cxx index 781b4bb59..22f201f8c 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); |