Commit c6eca690 authored by antirez's avatar antirez
Browse files

Remove useless variable check from luaCreateFunction().

The block is already inside if (allow_dup).
parent 68681f2b
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment