diff --git a/src/module.c b/src/module.c index 9278bbcb2..93517494f 100644 --- a/src/module.c +++ b/src/module.c @@ -7785,8 +7785,9 @@ sds genModulesInfoStringRenderModulesList(list *l) { while((ln = listNext(&li))) { RedisModule *module = ln->value; output = sdscat(output,module->name); + if (ln != listLast(l)) + output = sdscat(output,"|"); } - output = sdstrim(output,"|"); output = sdscat(output,"]"); return output; }