commit cf14248: [Minor] Lua core: Simplify class to string

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Sep 16 12:21:08 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-16 13:13:25 +0100
URL: https://github.com/rspamd/rspamd/commit/cf14248f9c96cd7bbdd23df02c2880cfe7ba284c

[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 ++;


More information about the Commits mailing list