From 88973856908f2f9797acb3b0d681d9e29f618a1f Mon Sep 17 00:00:00 2001 From: Kenneth Foster Date: Fri, 9 Jun 2023 16:26:02 -0400 Subject: [PATCH] Fixed linting --- server/util-server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/util-server.js b/server/util-server.js index 69149e589..667d5dc68 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -420,7 +420,7 @@ exports.redisPingAsync = function (dsn) { reject(err); }); client.connect().then(() => { - if(client.isOpen){ + if (client.isOpen) { client.ping().then((res, err) => { if (client.isOpen) { client.disconnect(); @@ -430,8 +430,8 @@ exports.redisPingAsync = function (dsn) { } else { resolve(res); } - }).catch(error => reject(error)); - } + }).catch(error => reject); + } }); }); };