1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Not needed.

This commit is contained in:
Cedric Beust 2015-12-08 20:52:20 -08:00
parent 0e3e70198c
commit d8e893be9e

View file

@ -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