Hoist exitWithMsg. Update blockhains number to check

This commit is contained in:
Mykola 2019-08-11 22:36:49 -07:00
parent 407f8d486d
commit a4d3e5679a

View File

@ -25,7 +25,7 @@ function checkRootDir () {
checkBlockhainsFolder() checkBlockhainsFolder()
function checkBlockhainsFolder(){ function checkBlockhainsFolder(){
const currentBlockchains = 47 const currentBlockchains = 58
const foundBlockchains = readDirSync('./blockchains') const foundBlockchains = readDirSync('./blockchains')
if (foundBlockchains.length !== currentBlockchains) { if (foundBlockchains.length !== currentBlockchains) {
@ -121,7 +121,7 @@ async function getBinanceTokenSymbols() {
}) })
} }
const exitWithMsg = msg => { function exitWithMsg (msg) {
console.log(msg) console.log(msg)
process.exit(1) process.exit(1)
} }