Commit 23f5cb42 authored by antirez's avatar antirez
Browse files

Change a bit the style of #6385.

parent ad45d7e4
...@@ -1149,10 +1149,8 @@ int RM_ReplyWithLongLong(RedisModuleCtx *ctx, long long ll) { ...@@ -1149,10 +1149,8 @@ int RM_ReplyWithLongLong(RedisModuleCtx *ctx, long long ll) {
int replyWithStatus(RedisModuleCtx *ctx, const char *msg, char *prefix) { int replyWithStatus(RedisModuleCtx *ctx, const char *msg, char *prefix) {
client *c = moduleGetReplyClient(ctx); client *c = moduleGetReplyClient(ctx);
if (c == NULL) return REDISMODULE_OK; if (c == NULL) return REDISMODULE_OK;
const size_t msgLen = strlen(msg); addReplyProto(c,prefix,strlen(prefix));
const size_t prefixLen = strlen(prefix); addReplyProto(c,msg,strlen(msg));
addReplyProto(c,prefix,prefixLen);
addReplyProto(c,msg,msgLen);
addReplyProto(c,"\r\n",2); addReplyProto(c,"\r\n",2);
return REDISMODULE_OK; return REDISMODULE_OK;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment