From 5db63685a28a9ce5e8a937050f132618e6878822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Sat, 7 Aug 2021 16:42:16 +0300 Subject: [PATCH] Simplify /help code. --- static/galene.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/static/galene.js b/static/galene.js index 9fd05b8..c75ecdf 100644 --- a/static/galene.js +++ b/static/galene.js @@ -2455,11 +2455,7 @@ commands.help = { continue; cs.push(`/${cmd}${c.parameters?' ' + c.parameters:''}: ${c.description}`); } - cs.sort(); - let s = ''; - for(let i = 0; i < cs.length; i++) - s = s + cs[i] + '\n'; - localMessage(s); + localMessage(cs.sort().join('\n')); } };