mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Don't warn if local.properties doesn't exist.
Getting an nonexistent value will throw anyway.
This commit is contained in:
parent
36387c374d
commit
4354d37ecf
1 changed files with 0 additions and 4 deletions
|
@ -12,10 +12,6 @@ class LocalProperties {
|
||||||
val localProperties: Properties by lazy {
|
val localProperties: Properties by lazy {
|
||||||
val result = Properties()
|
val result = Properties()
|
||||||
val filePath = Paths.get("local.properties")
|
val filePath = Paths.get("local.properties")
|
||||||
if (! Files.exists(filePath)) {
|
|
||||||
warn("Couldn't find a local.properties file")
|
|
||||||
}
|
|
||||||
|
|
||||||
filePath.let { path ->
|
filePath.let { path ->
|
||||||
if (Files.exists(path)) {
|
if (Files.exists(path)) {
|
||||||
Files.newInputStream(path).use {
|
Files.newInputStream(path).use {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue