Skip to content

Commit 887d7ac

Browse files
author
DvirDukhan
committed
fixed PR comment
1 parent 0f58880 commit 887d7ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/command_parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ static int _ModelRunCommand_ParseArgs(RedisModuleCtx *ctx, RedisModuleString **a
6868
}
6969
}
7070
}
71-
if ((*model)->inputs && (*model)->ninputs != ninputs) {
71+
if ((*model)->ninputs != ninputs) {
7272
RAI_SetError(error, RAI_EMODELRUN,
7373
"Number of keys given as INPUTS here does not match model definition");
7474
return REDISMODULE_ERR;
7575
}
7676

77-
if ((*model)->outputs && (*model)->noutputs != noutputs) {
77+
if ((*model)->noutputs != noutputs) {
7878
RAI_SetError(error, RAI_EMODELRUN,
7979
"Number of keys given as OUTPUTS here does not match model definition");
8080
return REDISMODULE_ERR;

0 commit comments

Comments
 (0)