From 4354d37ecf6c5c8e26603513d16a00c06cd92d76 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 7 Dec 2015 21:53:40 -0800 Subject: [PATCH] Don't warn if local.properties doesn't exist. Getting an nonexistent value will throw anyway. --- src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt b/src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt index 9210bc7f..0d9b565f 100644 --- a/src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt +++ b/src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt @@ -12,10 +12,6 @@ class LocalProperties { val localProperties: Properties by lazy { val result = Properties() val filePath = Paths.get("local.properties") - if (! Files.exists(filePath)) { - warn("Couldn't find a local.properties file") - } - filePath.let { path -> if (Files.exists(path)) { Files.newInputStream(path).use {