From 97d9c2dfc587eddfd6181c91b9ff419c821cec32 Mon Sep 17 00:00:00 2001 From: Alex G Date: Sun, 21 Jan 2024 10:09:59 +0100 Subject: [PATCH] Fix syntax . --- backend/setup.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/backend/setup.js b/backend/setup.js index 438b3d1f..750452d3 100644 --- a/backend/setup.js +++ b/backend/setup.js @@ -129,14 +129,12 @@ const setupCertbotPlugins = () => { }); if (!plugins.length) return; - .then(() => { - if (promises.length) { - return Promise.all(promises) - .then(() => { - logger.info('Added Certbot plugins ' + plugins.join(', ')); - }); - } - }); + Promise.all(promises) + .then(() => { + if (promises.length) { + logger.info('Added Certbot plugins ' + plugins.join(', ')); + } + }) } }); };