linting logic
This commit is contained in:
parent
0439096a53
commit
77b16392b0
@ -42,9 +42,7 @@ import {
|
|||||||
readSuccessResponseJsonOrThrow,
|
readSuccessResponseJsonOrThrow,
|
||||||
} from "@gnu-taler/taler-wallet-core";
|
} from "@gnu-taler/taler-wallet-core";
|
||||||
import { URL } from "url";
|
import { URL } from "url";
|
||||||
import * as fs from "fs";
|
import { spawn } from "child_process";
|
||||||
import * as path from "path";
|
|
||||||
import { ChildProcess, spawn } from "child_process";
|
|
||||||
import { delayMs } from "./integrationtests/harness.js";
|
import { delayMs } from "./integrationtests/harness.js";
|
||||||
|
|
||||||
interface BasicConf {
|
interface BasicConf {
|
||||||
@ -163,7 +161,7 @@ function checkCoinConfig(context: LintContext, basic: BasicConf): void {
|
|||||||
let numCoins = 0;
|
let numCoins = 0;
|
||||||
|
|
||||||
for (const secName of cfg.getSectionNames()) {
|
for (const secName of cfg.getSectionNames()) {
|
||||||
if (!secName.startsWith(coinPrefix1) || !secName.startsWith(coinPrefix2)) {
|
if (!(secName.startsWith(coinPrefix1) || secName.startsWith(coinPrefix2))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
numCoins++;
|
numCoins++;
|
||||||
|
Loading…
Reference in New Issue
Block a user