From 060810317e4249c1e231109987990762931c81ff Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 1 Jul 2022 21:31:01 +0100 Subject: [PATCH] [Minor] Inverse logic --- src/lua/lua_text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lua/lua_text.c b/src/lua/lua_text.c index 04a416942..b6f0948c3 100644 --- a/src/lua/lua_text.c +++ b/src/lua/lua_text.c @@ -357,12 +357,12 @@ lua_is_text_binary(struct rspamd_lua_text *t) if (rspamd_str_has_8bit(t->start, t->len)) { if (rspamd_fast_utf8_validate(t->start, t->len) == 0) { - return true; + return false; } - return false; + return true; } - return true; + return false; } -- 2.39.5