Merge pull request #1131 from josepfo/fix/nodes-failed-to-upgrade
fix: wrong switch statement
This commit is contained in:
commit
7776613558
1 changed files with 1 additions and 8 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue