Skip to content

Commit a1ade8c

Browse files
committed
fix
1 parent 888a7fe commit a1ade8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ class HbsLocalCompletion : CompletionProvider<CompletionParameters>() {
6767
}
6868
}
6969

70-
fun resolve(any: Any?, result: MutableList<LookupElement>, vis: MutableSet<PsiElement>?) {
70+
fun resolve(any: Any?, result: MutableList<LookupElement>, vis: MutableSet<PsiElement?>?) {
7171
val anything = any as? PsiElement
7272
var refElement: Any? = any
7373
if (any == null) {
7474
return
7575
}
7676

77-
var visited: MutableSet<PsiElement>? = vis
77+
var visited: MutableSet<PsiElement?>? = vis
7878

7979
if (visited == null) {
8080
visited = mutableSetOf()
@@ -84,7 +84,7 @@ class HbsLocalCompletion : CompletionProvider<CompletionParameters>() {
8484
return
8585
}
8686

87-
visited.add(anything!!)
87+
visited.add(anything)
8888

8989
if (anything is PsiFile) {
9090
val styleSheetLanguages = arrayOf("sass", "scss", "less")

0 commit comments

Comments
 (0)