Skip to content

Commit d89ecf5

Browse files
committed
don't use chaining operator in code that runs in old chrome
1 parent 65a8e11 commit d89ecf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/lib/yaml-validation/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ function validateObject(
620620
}
621621
if (
622622
value.result && typeof value.result === "object" &&
623-
!Array.isArray(value.result) && value.result?.tag === "!expr"
623+
!Array.isArray(value.result) && value.result.tag === "!expr"
624624
) {
625625
throw new NoExprTag(value, value.source);
626626
}

0 commit comments

Comments
 (0)