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 authored and hwware committed Sep 9, 2024
1 parent e22da9b commit 7f3e967
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -3803,10 +3803,11 @@ int commandCheckArgTokenDuplicacy(client *c, sds *err) {
if (c->argc <= 4) return 1;
for (int iter = 0; iter < c->cmd->num_args; iter++) {
if (c->cmd->args[iter].token && !(c->cmd->args[iter].flags & CMD_ARG_MULTIPLE_TOKEN)) {
if(!findDuplicatesOptions(c, c->cmd->args[iter].token)) {
if (!findDuplicatesOptions(c, c->cmd->args[iter].token)) {
if (err) {
*err = sdsnew(NULL);
*err = sdscatprintf(*err, "duplicate '%s' option for '%s' command", c->cmd->args[iter].token, c->cmd->fullname);
*err = sdscatprintf(*err, "duplicate '%s' option for '%s' command", c->cmd->args[iter].token,
c->cmd->fullname);
}
return 0;
}
Expand Down

0 comments on commit 7f3e967

Please sign in to comment.