We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85fbf8f commit f054de1Copy full SHA for f054de1
marker/js-marker/src/main/kotlin/spp/jetbrains/marker/js/detect/endpoint/ExpressEndpoint.kt
@@ -60,7 +60,7 @@ class ExpressEndpoint : EndpointDetector.EndpointNameDetector {
60
return@runReadAction
61
}
62
val router = method.firstChild as JSReferenceExpression
63
- val routerVariable = router.resolve() as JSInitializerOwner? ?: run {
+ val routerVariable = router.resolve() as? JSInitializerOwner ?: run {
64
promise.complete(emptyList())
65
66
0 commit comments