aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-09 17:07:07 +0000
committerGitHub <noreply@github.com>2017-03-09 17:07:07 +0000
commit0acbff09302ad7f246c1acb487d6129ad504db18 (patch)
treeb541a7be705aac40e41d72a835f64fd9b70d32cc /src/lua/lua_task.c
parenta52537ba555c179acb65832eada9d52117367949 (diff)
parent4b5a7d131fa645aee15b791112718ce1dd6faa48 (diff)
downloadrspamd-0acbff09302ad7f246c1acb487d6129ad504db18.tar.gz
rspamd-0acbff09302ad7f246c1acb487d6129ad504db18.zip
Merge pull request #1506 from fatalbanana/cleanup
[Minor] get_symbols_all: return nil instead of error
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 620a9d7f6..92e6764f6 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 {