]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] get_symbols_all: return nil instead of error 1506/head
authorAndrew Lewis <nerf@judo.za.org>
Thu, 9 Mar 2017 12:57:20 +0000 (14:57 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 9 Mar 2017 12:57:20 +0000 (14:57 +0200)
src/lua/lua_task.c

index cfb56a3a12c8de868b82c051207fefd8017331d3..552493cfe9dbb73e960b1f3e8152eae193c3bb4c 100644 (file)
@@ -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 {