From: Andrew Lewis Date: Thu, 9 Mar 2017 12:57:20 +0000 (+0200) Subject: [Minor] get_symbols_all: return nil instead of error X-Git-Tag: 1.5.3~67^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b5a7d131fa645aee15b791112718ce1dd6faa48;p=rspamd.git [Minor] get_symbols_all: return nil instead of error --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index cfb56a3a1..552493cfe 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2933,8 +2933,6 @@ lua_task_get_symbols_all (lua_State *L) lua_push_symbol_result (L, task, metric, k, v, FALSE, TRUE); lua_rawseti (L, -2, i++); } - } else { - return luaL_error (L, "no metric result"); } } else {