]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove duplicated element from task:get_metric_score() 803/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 3 Aug 2016 19:35:39 +0000 (21:35 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 3 Aug 2016 20:55:39 +0000 (22:55 +0200)
src/lua/lua_task.c

index a475162033f4a8af9dc46d7067e2af5fcf9f5d46..1638f8f4990115b3f477a9ecf399d442800bd14b 100644 (file)
@@ -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);