mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Better getString().
This commit is contained in:
parent
08499e1374
commit
521dfc327b
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue