From: Vsevolod Stakhov Date: Fri, 1 Jul 2022 20:31:01 +0000 (+0100) Subject: [Minor] Inverse logic X-Git-Tag: 3.3~155 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=060810317e4249c1e231109987990762931c81ff;p=rspamd.git [Minor] Inverse logic --- 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; }