Skip to content

Commit 439981f

Browse files
committed
navigation discovery
1 parent f39d335 commit 439981f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/org/digma/intellij/plugin/ui/navigation/CodeButtonContextService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class CodeButtonContextService(private val project: Project) : Disposable {
148148

149149
private fun getFocusedEndpoint(methodUnderCaret: MethodUnderCaret, methodInfo: MethodInfo): EndpointInfo? {
150150
return methodInfo.endpoints.firstOrNull { endpointInfo: EndpointInfo ->
151-
endpointInfo.textRange?.contains(methodUnderCaret.caretOffset) ?: false &&
151+
endpointInfo.textRange.contains(methodUnderCaret.caretOffset) &&
152152
endpointInfo.framework == EndpointFramework.Ktor
153153
}
154154
}

0 commit comments

Comments
 (0)