diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-16 13:13:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-16 13:13:25 +0100 |
commit | cf14248f9c96cd7bbdd23df02c2880cfe7ba284c (patch) | |
tree | 984a78938181b4c14a4026ae6ab8997c883654ed /src | |
parent | 5ef148649daca54714bd141bd473072250b46d83 (diff) | |
download | rspamd-cf14248f9c96cd7bbdd23df02c2880cfe7ba284c.tar.gz rspamd-cf14248f9c96cd7bbdd23df02c2880cfe7ba284c.zip |
[Minor] Lua core: Simplify class to string
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_common.c | 7 |
1 files changed, 0 insertions, 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 ++; |