Updated nullability in RunLineMarkerContributor
This commit is contained in:
committed by
Dmitry Jemerov
parent
4f079d2768
commit
3e6f57b684
@@ -27,9 +27,8 @@ import org.jetbrains.kotlin.psi.KtNamedFunction
|
|||||||
|
|
||||||
|
|
||||||
class KotlinRunLineMarkerContributor : RunLineMarkerContributor() {
|
class KotlinRunLineMarkerContributor : RunLineMarkerContributor() {
|
||||||
override fun getInfo(element: PsiElement?): RunLineMarkerContributor.Info? {
|
override fun getInfo(element: PsiElement): Info? {
|
||||||
val function = element?.parent as? KtNamedFunction
|
val function = element.parent as? KtNamedFunction ?: return null
|
||||||
if (function == null) return null
|
|
||||||
|
|
||||||
if (function.nameIdentifier != element) return null
|
if (function.nameIdentifier != element) return null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user