Fixed linting

This commit is contained in:
Kenneth Foster 2023-06-09 16:26:02 -04:00
parent 6132a45c7c
commit 8897385690

View File

@ -420,7 +420,7 @@ exports.redisPingAsync = function (dsn) {
reject(err); reject(err);
}); });
client.connect().then(() => { client.connect().then(() => {
if(client.isOpen){ if (client.isOpen) {
client.ping().then((res, err) => { client.ping().then((res, err) => {
if (client.isOpen) { if (client.isOpen) {
client.disconnect(); client.disconnect();
@ -430,7 +430,7 @@ exports.redisPingAsync = function (dsn) {
} else { } else {
resolve(res); resolve(res);
} }
}).catch(error => reject(error)); }).catch(error => reject);
} }
}); });
}); });