Skip to content

Commit 036192b

Browse files
committed
fix ci
1 parent 14eae66 commit 036192b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/cloud_firestore/cloud_firestore_web/lib/src/pipeline_expression_parser_web.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,10 @@ class PipelineExpressionParserWeb {
317317
return result;
318318
case 'not':
319319
final expr = argsMap[_kExpression] as Map<String, dynamic>;
320-
final boolExpr = toBooleanExpression(expr) as JSAny?;
320+
final boolExpr = toBooleanExpression(expr);
321+
if (boolExpr == null) {
322+
throw UnsupportedError('not requires a boolean expression');
323+
}
321324
return _pipelines.not(boolExpr);
322325
case 'exists':
323326
return _pipelines.exists(_expr(argsMap, _kExpression));

0 commit comments

Comments
 (0)