aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-16 13:13:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-16 13:13:25 +0100
commitcf14248f9c96cd7bbdd23df02c2880cfe7ba284c (patch)
tree984a78938181b4c14a4026ae6ab8997c883654ed /src
parent5ef148649daca54714bd141bd473072250b46d83 (diff)
downloadrspamd-cf14248f9c96cd7bbdd23df02c2880cfe7ba284c.tar.gz
rspamd-cf14248f9c96cd7bbdd23df02c2880cfe7ba284c.zip
[Minor] Lua core: Simplify class to string
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_common.c7
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 ++;