Skip to content

Commit 9abc25d

Browse files
committed
Formatting
1 parent 1392873 commit 9abc25d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/dag.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,8 @@ int RedisAI_DagRun_Reply(RedisModuleCtx *ctx, RedisModuleString **argv, int argc
704704
RedisModuleString *demangled_key_name =
705705
RedisModule_CreateString(NULL, persist_key_str, persist_key_len - 4);
706706
RedisModule_RetainString(NULL, demangled_key_name);
707-
const int status =
708-
RAI_OpenKey_Tensor(ctx, demangled_key_name, &key, REDISMODULE_READ | REDISMODULE_WRITE);
707+
const int status = RAI_OpenKey_Tensor(ctx, demangled_key_name, &key,
708+
REDISMODULE_READ | REDISMODULE_WRITE);
709709
if (status == REDISMODULE_ERR) {
710710
RedisModule_ReplyWithError(ctx, "ERR could not save tensor");
711711
rinfo->dagReplyLength++;

src/model.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ RAI_Model *RAI_ModelCreate(RAI_Backend backend, const char *devicestr, RedisModu
327327
if (tag) {
328328
RedisModule_RetainString(NULL, tag);
329329
model->tag = tag;
330-
}
331-
else {
330+
} else {
332331
model->tag = RedisModule_CreateString(NULL, "", 0);
333332
}
334333
}

src/script.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ RAI_Script *RAI_ScriptCreate(const char *devicestr, RedisModuleString *tag, cons
122122
if (tag) {
123123
RedisModule_RetainString(NULL, tag);
124124
script->tag = tag;
125-
}
126-
else {
125+
} else {
127126
script->tag = RedisModule_CreateString(NULL, "", 0);
128127
}
129128
}

0 commit comments

Comments
 (0)