gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: linting


From: gnunet
Subject: [taler-wallet-core] branch master updated: linting
Date: Wed, 04 Aug 2021 18:08:26 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 4293b91a linting
4293b91a is described below

commit 4293b91abccba0839ed10230cc63d7812bdfdae4
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Aug 4 18:08:24 2021 +0200

    linting
---
 packages/taler-wallet-cli/src/lint.ts | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/packages/taler-wallet-cli/src/lint.ts 
b/packages/taler-wallet-cli/src/lint.ts
index a599f130..4913d2ab 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) {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]