]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua core: Simplify class to string
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Sep 2019 12:13:25 +0000 (13:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Sep 2019 12:13:25 +0000 (13:13 +0100)
src/lua/lua_common.c

index 0040847c12b22fc2ae9d4b90dbb8e37474c28d94..562adf5d549234ced607251a27d550c4f9310f32 100644 (file)
@@ -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 ++;