Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(cherry picked from commit 6b1abd3)
  • Loading branch information
BFergerson committed Mar 1, 2023
1 parent 85fbf8f commit f054de1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ExpressEndpoint : EndpointDetector.EndpointNameDetector {
return@runReadAction
}
val router = method.firstChild as JSReferenceExpression
val routerVariable = router.resolve() as JSInitializerOwner? ?: run {
val routerVariable = router.resolve() as? JSInitializerOwner ?: run {
promise.complete(emptyList())
return@runReadAction
}
Expand Down

0 comments on commit f054de1

Please sign in to comment.