Skip to content

Commit 700f66e

Browse files
authored
fix
1 parent ba6efbd commit 700f66e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/emberjs/hbs/HbsLocalCompletion.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ class HbsLocalCompletion : CompletionProvider<CompletionParameters>() {
107107
}
108108

109109
if (anything is PsiElement && anything.reference is HbsLocalReference) {
110-
resolve((anything.reference as HbsLocalReference?)?.resolveYield(), result)
110+
resolve((anything.reference as? HbsLocalReference)?.resolveYield(), result)
111111
resolve(anything.reference?.resolve(), result)
112112
}
113113

114114
if (anything is PsiElement && anything.reference == null) {
115115
val ref = anything.containingFile.originalFile.findReferenceAt(anything.textOffset)
116-
resolve((ref as HbsLocalReference?)?.resolveYield(), result)
116+
resolve((ref as? HbsLocalReference)?.resolveYield(), result)
117117
resolve(ref?.resolve(), result)
118118
}
119119

0 commit comments

Comments
 (0)