From: Vsevolod Stakhov Date: Thu, 22 Nov 2018 14:17:23 +0000 (+0000) Subject: [Minor] Remove redundant check X-Git-Tag: 1.8.3~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75e7de90cd1fec5b3fbf60e8e341f14ddc86b725;p=thirdparty%2Frspamd.git [Minor] Remove redundant check --- diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index f878788372..3a1445b612 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -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; }