mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Change a bit the style of #6385.
This commit is contained in:
parent
ad45d7e407
commit
23f5cb4233
@ -1149,10 +1149,8 @@ int RM_ReplyWithLongLong(RedisModuleCtx *ctx, long long ll) {
|
||||
int replyWithStatus(RedisModuleCtx *ctx, const char *msg, char *prefix) {
|
||||
client *c = moduleGetReplyClient(ctx);
|
||||
if (c == NULL) return REDISMODULE_OK;
|
||||
const size_t msgLen = strlen(msg);
|
||||
const size_t prefixLen = strlen(prefix);
|
||||
addReplyProto(c,prefix,prefixLen);
|
||||
addReplyProto(c,msg,msgLen);
|
||||
addReplyProto(c,prefix,strlen(prefix));
|
||||
addReplyProto(c,msg,strlen(msg));
|
||||
addReplyProto(c,"\r\n",2);
|
||||
return REDISMODULE_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user