We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cc9ea5 commit bc1ec18Copy full SHA for bc1ec18
1 file changed
packages/flag-evaluation/src/index.ts
@@ -387,6 +387,7 @@ async function evaluateRecursively(
387
let result = isAnd;
388
for (const current of filter.filters) {
389
// short-circuit if we know the result already
390
+ // could be simplified to isAnd !== result, but this is more readable
391
if ((isAnd && !result) || (!isAnd && result)) {
392
return result;
393
}
0 commit comments