From d8e893be9e7aef7200233634e40b2276e4156054 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 8 Dec 2015 20:52:20 -0800 Subject: [PATCH] Not needed. --- src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt b/src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt index 0d9b565f..06dfbb90 100644 --- a/src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt +++ b/src/main/kotlin/com/beust/kobalt/misc/LocalProperties.kt @@ -8,7 +8,6 @@ import java.util.* @Singleton class LocalProperties { - var docUrl: String? = null val localProperties: Properties by lazy { val result = Properties() val filePath = Paths.get("local.properties") @@ -24,7 +23,6 @@ class LocalProperties { } fun get(name: String, docUrl: String? = null) : String { - this.docUrl = docUrl val result = localProperties.getProperty(name) ?: throw KobaltException("Couldn't find $name in local.properties", docUrl = docUrl) return result as String