From bfbe4b35a95dac3a775d2cad31af559f88c96253 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 7 Mar 2017 18:27:49 -0800 Subject: [PATCH] Refactor. --- src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt index 9d0c4405..00dc4729 100644 --- a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt @@ -101,7 +101,7 @@ class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val buildFil buildScriptJarFile.parentFile.let { dir -> if (! VersionFile.isSameVersionFile(dir)) { kobaltLog(1, "Detected new installation, wiping $dir") - dir.listFiles().map { it.delete() } + dir.listFiles().map(File::delete) } }