Fix missing separator in module info line (usedby and using lists) (#9241)

Fix module info genModulesInfoStringRenderModulesList lack separator when there's more than one module in the list.

Co-authored-by: Oran Agra <oran@redislabs.com>
(cherry picked from commit 1895e134a7)
This commit is contained in:
Huang Zhw
2021-07-21 21:06:49 +03:00
committed by Oran Agra
parent b622537199
commit 6866117194
+2 -1
View File
@@ -8701,8 +8701,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;
}