fix: wrong switch statement

This commit is contained in:
José Oliveira 2022-02-24 17:47:55 +00:00
parent 89d555de89
commit 886a1f74e6

View file

@ -24,14 +24,7 @@ function plugin (crypto) {
function isWalletNodeInstalled (status) {
// From http://supervisord.org/subprocess.html#process-states
switch (status) {
case 'STARTING' || 'RUNNING' || 'STOPPED' || 'BACKOFF' || 'STOPPING' || 'EXITED' || 'FATAL':
return true
case 'UNKNOWN':
return false
default:
return false
}
return _.includes(status, ['STARTING', 'RUNNING', 'STOPPED', 'BACKOFF', 'STOPPING', 'EXITED', 'FATAL'])
}
function run () {