diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-08-03 21:35:39 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-08-03 22:55:39 +0200 |
commit | 0839ea7ae2308974296d46c483e72571e8bcaf3f (patch) | |
tree | de545189f4b6b007129c3eb9e16037e44c50ede4 | |
parent | 9fd26f1ff73dd5c3eee81dc17f1cf69445b9ae4c (diff) | |
download | rspamd-0839ea7ae2308974296d46c483e72571e8bcaf3f.tar.gz rspamd-0839ea7ae2308974296d46c483e72571e8bcaf3f.zip |
[Minor] Remove duplicated element from task:get_metric_score()
-rw-r--r-- | src/lua/lua_task.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index a47516203..1638f8f49 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -480,7 +480,7 @@ LUA_FUNCTION_DEF (task, get_timeval); * @method task:get_metric_score(name) * Get the current score of metric `name`. Should be used in post-filters only. * @param {string} name name of a metric - * @return {number} the current score of the metric + * @return {table} table containing the current score and required score of the metric */ LUA_FUNCTION_DEF (task, get_metric_score); /*** @@ -3023,8 +3023,6 @@ lua_task_get_metric_score (lua_State *L) lua_rawseti (L, -2, 1); lua_pushnumber (L, rs); lua_rawseti (L, -2, 2); - lua_pushnumber (L, rs); - lua_rawseti (L, -2, 3); } else { lua_pushnil (L); |