Skip to content

Commit bc1ec18

Browse files
committed
add comment
1 parent 1cc9ea5 commit bc1ec18

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/flag-evaluation/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ async function evaluateRecursively(
387387
let result = isAnd;
388388
for (const current of filter.filters) {
389389
// short-circuit if we know the result already
390+
// could be simplified to isAnd !== result, but this is more readable
390391
if ((isAnd && !result) || (!isAnd && result)) {
391392
return result;
392393
}

0 commit comments

Comments
 (0)