From cf14248f9c96cd7bbdd23df02c2880cfe7ba284c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 16 Sep 2019 13:13:25 +0100 Subject: [PATCH] [Minor] Lua core: Simplify class to string --- src/lua/lua_common.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index 0040847c1..562adf5d5 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -131,14 +131,7 @@ rspamd_lua_class_tostring_buf (lua_State *L, gboolean print_pointer, gint pos) goto err; } - lua_pushstring (L, "__index"); - lua_gettable (L, -2); pop ++; - - if (!lua_istable (L, -1)) { - goto err; - } - lua_pushstring (L, "class"); lua_gettable (L, -2); pop ++; -- 2.39.5