Skip to content

Commit fc270d2

Browse files
committed
fix(analysis): do not update variables which do not exist
1 parent 829a6e1 commit fc270d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elsa-analyser.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ FORM is a result of `elsa-read-form'."
11521152
(when-let ((annotation (oref form annotation)))
11531153
(cond
11541154
((eq (car annotation) 'var)
1155-
(let ((var (elsa-scope-get-var scope (cadr annotation))))
1155+
(when-let ((var (elsa-scope-get-var scope (cadr annotation))))
11561156
;; update the type in the current scope
11571157
(oset var type (eval `(elsa-make-type ,@(nthcdr 3 annotation))))))))
11581158

0 commit comments

Comments
 (0)