aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-12 11:29:30 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-12 11:29:30 +0100
commit980ac60a32e935db4535de46c3e65d5589cc918f (patch)
tree21b5e2015884139b11708497baf33ed8546eb129 /src
parentdad96346a3dcc03594b330aaedeef970e8ad21a7 (diff)
downloadrspamd-980ac60a32e935db4535de46c3e65d5589cc918f.tar.gz
rspamd-980ac60a32e935db4535de46c3e65d5589cc918f.zip
[Minor] Remove redundant code
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_config.c13
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);