From 0839ea7ae2308974296d46c483e72571e8bcaf3f Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 3 Aug 2016 21:35:39 +0200 Subject: [PATCH] [Minor] Remove duplicated element from task:get_metric_score() --- src/lua/lua_task.c | 4 +--- 1 file changed, 1 insertion(+), 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); -- 2.39.5