Skip to content

Commit f2f6dcc

Browse files
committed
fix: ensure node exists before using in isArrowFunctionExpression
1 parent fd8a362 commit f2f6dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@ export function hasThenProperty(node: TSESTree.Node) {
104104
}
105105

106106
export function isArrowFunctionExpression(node: TSESTree.Node): node is TSESTree.ArrowFunctionExpression {
107-
return node.type === 'ArrowFunctionExpression'
107+
return node && node.type === 'ArrowFunctionExpression'
108108
}

0 commit comments

Comments
 (0)