Skip to content

Commit 960b861

Browse files
committed
address PR comments
1 parent ba735ba commit 960b861

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/zod/src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ function evalBinary(data: any, expr: BinaryExpression) {
382382
return false;
383383
}
384384
return right.includes(left);
385+
default:
386+
throw new SchemaFactoryError(`Unsupported binary operator: ${expr.op}`);
385387
}
386388
}
387389

0 commit comments

Comments
 (0)