Remove useless variable check from luaCreateFunction().

The block is already inside if (allow_dup).
This commit is contained in:
antirez 2017-12-04 10:55:46 +01:00
parent 68681f2bcf
commit c6eca690ee

View File

@ -1172,7 +1172,7 @@ int luaCreateFunction(client *c, lua_State *lua, char *funcname, robj *body, int
if (allow_dup) {
sds sha = sdsnewlen(funcname+2,40);
if (allow_dup && dictFind(server.lua_scripts,sha) != NULL) {
if (dictFind(server.lua_scripts,sha) != NULL) {
sdsfree(sha);
return C_OK;
}