diff options
author | Florian Dold <florian@dold.me> | 2021-08-04 18:08:24 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-04 18:08:24 +0200 |
commit | 4293b91abccba0839ed10230cc63d7812bdfdae4 (patch) | |
tree | 29cc7e99b3e6500ea6d62d749860e6fd8f6f3455 /packages | |
parent | acaa2282b60d9911532570ee261f541b11cb3a58 (diff) |
linting
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-cli/src/lint.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/taler-wallet-cli/src/lint.ts b/packages/taler-wallet-cli/src/lint.ts index a599f130f..4913d2ab5 100644 --- a/packages/taler-wallet-cli/src/lint.ts +++ b/packages/taler-wallet-cli/src/lint.ts @@ -125,11 +125,12 @@ function checkBasicConf(cfg: Configuration): BasicConf { } function checkCoinConfig(cfg: Configuration, basic: BasicConf): void { - const coinPrefix = "COIN_"; + const coinPrefix1 = "COIN_"; + const coinPrefix2 = "COIN-"; let numCoins = 0; for (const secName of cfg.getSectionNames()) { - if (!secName.startsWith(coinPrefix)) { + if (!secName.startsWith(coinPrefix1) && !secName.startsWith(coinPrefix2)) { continue; } numCoins++; @@ -185,11 +186,6 @@ function checkCloserConfig(cfg: Configuration) { function checkMasterPublicKeyConfig(cfg: Configuration): PubkeyConf { const pub = cfg.getString("exchange", "master_public_key"); - if (!pub.isDefined) { - console.log("error: Master public key is not set."); - process.exit(1); - } - const pubDecoded = decodeCrock(pub.required()); if (pubDecoded.length != 32) { |