mirror of
https://github.com/nasa/openmct.git
synced 2025-03-21 03:25:44 +00:00
Remove short-circuit logic
This commit is contained in:
parent
3ae9d121a1
commit
27f74bf58a
@ -421,10 +421,8 @@ export default class ConditionManager extends EventEmitter {
|
||||
|
||||
updateConditionResults(normalizedDatum) {
|
||||
//We want to stop when the first condition evaluates to true.
|
||||
this.conditions.some((condition) => {
|
||||
this.conditions.forEach((condition) => {
|
||||
condition.updateResult(normalizedDatum);
|
||||
|
||||
return condition.result === true;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user