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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F803%2Fhead;p=thirdparty%2Frspamd.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 a475162033..1638f8f499 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);