diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-12 11:29:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-12 11:29:30 +0100 |
commit | 980ac60a32e935db4535de46c3e65d5589cc918f (patch) | |
tree | 21b5e2015884139b11708497baf33ed8546eb129 /src | |
parent | dad96346a3dcc03594b330aaedeef970e8ad21a7 (diff) | |
download | rspamd-980ac60a32e935db4535de46c3e65d5589cc918f.tar.gz rspamd-980ac60a32e935db4535de46c3e65d5589cc918f.zip |
[Minor] Remove redundant code
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_config.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index a605f2fac..c880b235e 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -2050,16 +2050,9 @@ lua_config_register_symbol (lua_State * L) nshots = 1; } - if (!isnan (score)) { - rspamd_config_add_symbol (cfg, name, - score, description, group, flags, - 0, nshots); - } - else { - rspamd_config_add_symbol (cfg, name, - NAN, description, group, flags, - 0, nshots); - } + rspamd_config_add_symbol (cfg, name, + score, description, group, flags, + 0, nshots); lua_pushstring (L, "groups"); lua_gettable (L, 2); |