Merge pull request #1131 from josepfo/fix/nodes-failed-to-upgrade

fix: wrong switch statement
This commit is contained in:
Rafael Taranto 2022-03-01 12:13:08 +00:00 committed by GitHub
commit 7776613558

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 () {