mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Not needed.
This commit is contained in:
parent
0e3e70198c
commit
d8e893be9e
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue