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) {
|
function isWalletNodeInstalled (status) {
|
||||||
// From http://supervisord.org/subprocess.html#process-states
|
// From http://supervisord.org/subprocess.html#process-states
|
||||||
switch (status) {
|
return _.includes(status, ['STARTING', 'RUNNING', 'STOPPED', 'BACKOFF', 'STOPPING', 'EXITED', 'FATAL'])
|
||||||
case 'STARTING' || 'RUNNING' || 'STOPPED' || 'BACKOFF' || 'STOPPING' || 'EXITED' || 'FATAL':
|
|
||||||
return true
|
|
||||||
case 'UNKNOWN':
|
|
||||||
return false
|
|
||||||
default:
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function run () {
|
function run () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue