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 15cbc35 commit b08c380Copy full SHA for b08c380
build-tools-lib/src/main/kotlin/org/modelix/buildtools/BuildScriptGenerator.kt
@@ -961,9 +961,10 @@ class BuildScriptGenerator(
961
private fun getIdeaPluginsBuildDir(buildDir: File) = buildDir.resolve("idea-plugins")
962
963
fun findExecutableAbsolutePath(name: String): String {
964
- return System.getenv("PATH").split(File.pathSeparatorChar)
965
- .map { File(it).resolve(name) }
966
- .firstOrNull { it.isFile && it.exists() }
+ return System.getenv("PATH")
+ ?.split(File.pathSeparatorChar)
+ ?.map { File(it).resolve(name) }
967
+ ?.firstOrNull { it.isFile && it.exists() }
968
?.absolutePath
969
?: name
970
}
0 commit comments