From 46d84b99b0d443b67555767429bef7f2ac0ef5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Thu, 10 Feb 2022 00:55:56 +0000 Subject: [PATCH] fix: remove unnecessary variable --- bin/lamassu-update-wallet-nodes | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/lamassu-update-wallet-nodes b/bin/lamassu-update-wallet-nodes index 2a40bb25..6df651fb 100644 --- a/bin/lamassu-update-wallet-nodes +++ b/bin/lamassu-update-wallet-nodes @@ -6,8 +6,6 @@ const { utils: coinUtils } = require('lamassu-coins') const cryptos = coinUtils.cryptoCurrencies() -const supervisorStates = ['RUNNING', 'STARTING'] - const PLUGINS = { BTC: require('../lib/blockchain/bitcoin.js'), LTC: require('../lib/blockchain/litecoin.js'), @@ -30,7 +28,7 @@ function run () { const cryptoPlugin = plugin(crypto) const status = common.es(`sudo supervisorctl status ${crypto.code} | awk '{ print $2 }'`).trim() - cryptoPlugin.updateCore(common.getBinaries(crypto.cryptoCode), _.includes(status, supervisorStates)) + cryptoPlugin.updateCore(common.getBinaries(crypto.cryptoCode), _.includes(status, ['RUNNING', 'STARTING'])) }, cryptos) }