fix condition

This commit is contained in:
Florian Dold 2021-08-04 22:35:03 +02:00
parent 3ca05c0906
commit 8210480bdd
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -155,7 +155,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++;