NOTICE: simplifying by using 'some'

This commit is contained in:
Niels Lyngsø
2024-03-03 14:55:28 +01:00
parent 15da6e85eb
commit 1356f8e222

View File

@@ -234,8 +234,7 @@ export abstract class UmbBaseExtensionInitializer<
// Find a condition that is not permitted (Notice how no conditions, means that this extension is permitted)
const isPositive =
this.#conditionsAreInitialized() &&
this.#conditionControllers.find((condition) => condition.permitted === false) === undefined;
this.#conditionsAreInitialized() && this.#conditionControllers.some((condition) => condition.permitted === false);
this._isConditionsPositive = isPositive;