Skip to content

Commit 1ae1bcb

Browse files
committed
style(contract-psl): optional-chain the arrow-path string check
Signed-off-by: Alexey Orlenko's AI Agent <robot@aqrln.net>
1 parent 0f544ce commit 1ae1bcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/2-sql/2-authoring/contract-psl/src/psl-relation-resolution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function throughRef(): ArgType<ThroughArgument> {
347347
parse: (arg, ctx): Result<ThroughArgument, readonly PslDiagnostic[]> => {
348348
if (arg instanceof StringLiteralExprAst) {
349349
const value = arg.value();
350-
if (value !== undefined && value.includes('->')) {
350+
if (value?.includes('->')) {
351351
const arrowPath = parseArrowPath(value);
352352
if (arrowPath === undefined) {
353353
return notOk([

0 commit comments

Comments
 (0)