From: Andrew Lewis Date: Wed, 3 Aug 2016 19:35:39 +0000 (+0200) Subject: [Minor] Remove duplicated element from task:get_metric_score() X-Git-Tag: 1.3.2~54^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0839ea7ae2308974296d46c483e72571e8bcaf3f;p=rspamd.git [Minor] Remove duplicated element from task:get_metric_score() --- 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);