Skip to content

Commit

Permalink
Correct format
Browse files Browse the repository at this point in the history
Signed-off-by: Shivshankar-Reddy <[email protected]>
  • Loading branch information
Shivshankar-Reddy committed Jun 18, 2024
1 parent a30d4ce commit b59b29e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -3742,11 +3742,13 @@ int commandCheckArgTokenDuplicacy(client *c, sds *err) {
}
if (c->cmd->args[iter].subargs) {
for (int subiter = 0; subiter < c->cmd->args[iter].num_args; subiter++) {
if (c->cmd->args[iter].subargs[subiter].token && !(c->cmd->args[iter].subargs[subiter].flags & CMD_ARG_MULTIPLE_TOKEN)) {
if(!findDuplicatesOptions(c, c->cmd->args[iter].subargs[subiter].token)) {
if (c->cmd->args[iter].subargs[subiter].token &&
!(c->cmd->args[iter].subargs[subiter].flags & CMD_ARG_MULTIPLE_TOKEN)) {
if (!findDuplicatesOptions(c, c->cmd->args[iter].subargs[subiter].token)) {
if (err) {
*err = sdsnew(NULL);
*err = sdscatprintf(*err, "duplicate '%s' option for '%s' command", c->cmd->args[iter].subargs[subiter].token, c->cmd->fullname);
*err = sdscatprintf(*err, "duplicate '%s' option for '%s' command",
c->cmd->args[iter].subargs[subiter].token, c->cmd->fullname);
}
return 0;
}
Expand Down

0 comments on commit b59b29e

Please sign in to comment.