Skip to content

Commit c8d171b

Browse files
committed
Don't show "Run tests" gutter icon when there's nothing to run
#KT-20338 Fixed
1 parent 7e0f38e commit c8d171b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinTestRunLineMarkerContributor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class KotlinTestRunLineMarkerContributor : RunLineMarkerContributor() {
148148
is JvmPlatform -> getJavaTestIcon(declaration)
149149
is JsPlatform -> getJavaScriptTestIcon(declaration, descriptor)
150150
else -> return null
151-
}
151+
} ?: return null
152152
return RunLineMarkerContributor.Info(icon, { "Run Test" }, ExecutorAction.getActions())
153153
}
154154
}

0 commit comments

Comments
 (0)