]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Remove redundant check
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 22 Nov 2018 14:17:23 +0000 (14:17 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 22 Nov 2018 14:17:23 +0000 (14:17 +0000)
src/lua/lua_redis.c

index f878788372045f67af9bcab2f1db542f97db8b0d..3a1445b6122844fc9765716aed507bb9181fff16 100644 (file)
@@ -832,13 +832,6 @@ rspamd_lua_redis_prepare_connection (lua_State *L, gint *pcbref, gboolean is_asy
                        }
                        lua_pop (L, 1);
 
-                       lua_pushstring (L, "ev_base");
-                       lua_gettable (L, -2);
-                       if (lua_type (L, -1) == LUA_TUSERDATA) {
-                               ev_base = lua_check_ev_base (L, -1);
-                       }
-                       lua_pop (L, 1);
-
                        if (cfg && ev_base) {
                                ret = TRUE;
                        }