We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1583cd6 commit 938d131Copy full SHA for 938d131
src/rule.js
@@ -206,7 +206,8 @@ class Rule extends EventEmitter {
206
}
207
let orderedSets = this.prioritizeConditions(conditions)
208
let cursor = Promise.resolve()
209
- orderedSets.forEach((set) => {
+ for (let i = 0; i < orderedSets.length; i++) {
210
+ let set = orderedSets[i]
211
let stop = false
212
cursor = cursor.then((setResult) => {
213
// after the first set succeeds, don't fire off the remaining promises
@@ -225,7 +226,7 @@ class Rule extends EventEmitter {
225
226
// all conditions passed; proceed with running next set in parallel
227
return evaluateConditions(set, method)
228
})
- })
229
+ }
230
return cursor
231
232
0 commit comments