Remove useless variable check from luaCreateFunction().
The block is already inside if (allow_dup).
This commit is contained in:
parent
78f8583063
commit
f08a02dac5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user