diff options
author | antirez <antirez@gmail.com> | 2017-12-04 10:55:46 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-12-04 10:55:54 +0100 |
commit | c6eca690ee0df88361dd878563fcbc6b1ce214a2 (patch) | |
tree | 225494c5505378ed83d505f834c1325c1f1615a1 | |
parent | 68681f2bcf8d17e573c27ff3fc676ddde381204c (diff) | |
download | redis-c6eca690ee0df88361dd878563fcbc6b1ce214a2.tar.gz |
Remove useless variable check from luaCreateFunction().
The block is already inside if (allow_dup).
-rw-r--r-- | src/scripting.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripting.c b/src/scripting.c index 9427b7b6b..e6a70e546 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -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; } |