Skip to content

Commit 1a01e23

Browse files
Copilothotlong
andcommitted
Address code review feedback on hasOrLogic check
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 4a92998 commit 1a01e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/drivers/memory/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ export class MemoryDriver implements Driver {
593593
} else if (allConditions.length === 1) {
594594
return allConditions[0];
595595
} else {
596-
// Determine top-level operator: use OR if any group has OR logic
596+
// Determine top-level operator: use OR if any non-empty group has OR logic
597597
const hasOrLogic = logicGroups.some(g => g.logic === 'or' && g.conditions.length > 0);
598598
if (hasOrLogic) {
599599
return { $or: allConditions };

0 commit comments

Comments
 (0)