mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Remove useless variable check from luaCreateFunction().
The block is already inside if (allow_dup).
This commit is contained in:
parent
68681f2bcf
commit
c6eca690ee
@ -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…
Reference in New Issue
Block a user