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

Better getString().

This commit is contained in:
Cedric Beust 2015-11-18 23:15:50 -08:00
parent 08499e1374
commit 521dfc327b

View file

@ -11,6 +11,10 @@ class ProjectProperties {
fun get(key: String) = properties[key]
fun getString(key: String) = get(key) as String
fun getString(key: String) : String? {
val result = get(key)
return if (result != null) result as String
else null
}
}