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 logic


From: gnunet
Subject: [taler-wallet-core] branch master updated: linting logic
Date: Wed, 04 Aug 2021 23:32:37 +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 77b16392 linting logic
77b16392 is described below

commit 77b16392b0eb4f5e5c82ad88f22d2425fdf7be33
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Aug 4 23:32:34 2021 +0200

    linting logic
---
 packages/taler-wallet-cli/src/lint.ts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/packages/taler-wallet-cli/src/lint.ts 
b/packages/taler-wallet-cli/src/lint.ts
index e6155b48..9f0e8434 100644
--- a/packages/taler-wallet-cli/src/lint.ts
+++ b/packages/taler-wallet-cli/src/lint.ts
@@ -42,9 +42,7 @@ import {
   readSuccessResponseJsonOrThrow,
 } from "@gnu-taler/taler-wallet-core";
 import { URL } from "url";
-import * as fs from "fs";
-import * as path from "path";
-import { ChildProcess, spawn } from "child_process";
+import { spawn } from "child_process";
 import { delayMs } from "./integrationtests/harness.js";
 
 interface BasicConf {
@@ -163,7 +161,7 @@ function checkCoinConfig(context: LintContext, basic: 
BasicConf): void {
   let numCoins = 0;
 
   for (const secName of cfg.getSectionNames()) {
-    if (!secName.startsWith(coinPrefix1) || !secName.startsWith(coinPrefix2)) {
+    if (!(secName.startsWith(coinPrefix1) || secName.startsWith(coinPrefix2))) 
{
       continue;
     }
     numCoins++;

-- 
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]