Skip to content

Commit 5180f0d

Browse files
committed
Small reorder of imports
1 parent b386539 commit 5180f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/org/javacs/kt/CompiledFile.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.javacs.kt
22

3-
import org.eclipse.lsp4j.MarkedString
43
import com.intellij.openapi.util.TextRange
4+
import org.eclipse.lsp4j.MarkedString
55
import org.javacs.kt.position.changedRegion
66
import org.javacs.kt.position.position
77
import org.javacs.kt.util.findParent
@@ -55,7 +55,7 @@ class CompiledFile(
5555
val scope = scopeAtPoint(cursor) ?: return nullResult("Couldn't find scope at ${describePosition(cursor)}")
5656
val context = bindingContextOf(surroundingExpr, scope)
5757
LOG.info("Hovering {}", surroundingExpr)
58-
return referenceFromContext(cursor, context) ?: return null
58+
return referenceFromContext(cursor, context)
5959
}
6060

6161
private fun referenceFromContext(cursor: Int, context: BindingContext): Pair<KtExpression, DeclarationDescriptor>? {

0 commit comments

Comments
 (0)