summaryrefslogtreecommitdiff
path: root/src/t_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/t_string.c')
-rw-r--r--src/t_string.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/t_string.c b/src/t_string.c
index deba22253..4e693cefa 100644
--- a/src/t_string.c
+++ b/src/t_string.c
@@ -510,9 +510,6 @@ void lcsCommand(client *c) {
if (a != NULL) {
addReplyError(c,"Either use STRINGS or KEYS");
return;
- } else if (moreargs != 2) {
- addReplyError(c,"LCS requires exactly two strings");
- return;
}
a = c->argv[j+1]->ptr;
b = c->argv[j+2]->ptr;
@@ -521,9 +518,6 @@ void lcsCommand(client *c) {
if (a != NULL) {
addReplyError(c,"Either use STRINGS or KEYS");
return;
- } else if (moreargs != 2) {
- addReplyError(c,"LCS requires exactly two keys");
- return;
}
obja = lookupKeyRead(c->db,c->argv[j+1]);
objb = lookupKeyRead(c->db,c->argv[j+2]);