mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 12:14:41 -05:00
Fixed linting
This commit is contained in:
parent
6132a45c7c
commit
8897385690
@ -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,7 +430,7 @@ exports.redisPingAsync = function (dsn) {
|
||||
} else {
|
||||
resolve(res);
|
||||
}
|
||||
}).catch(error => reject(error));
|
||||
}).catch(error => reject);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user