diff options
author | Florian Dold <florian@dold.me> | 2021-08-04 23:32:34 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-04 23:32:34 +0200 |
commit | 77b16392b0eb4f5e5c82ad88f22d2425fdf7be33 (patch) | |
tree | 1d2a8730a0b8c1ebd6221acff5b06530594a8ec5 /packages | |
parent | 0439096a534fa38f5522c3a1e152dc7b650545a6 (diff) |
linting logic
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-cli/src/lint.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/taler-wallet-cli/src/lint.ts b/packages/taler-wallet-cli/src/lint.ts index e6155b48e..9f0e84345 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++; |