Skip to content

Commit

Permalink
Database.kt: use mutableListOf for initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Oct 13, 2022
1 parent d331aec commit 037e32f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/d/d/meshenger/Database.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ class Database {

// default keys
val defaults_iter = defaults.keys()
val defaults_keys: MutableList<String> = ArrayList()
val defaults_keys = mutableListOf<String>()
while (defaults_iter.hasNext()) {
defaults_keys.add(defaults_iter.next())
}

// current keys
val settings_iter = settings.keys()
val settings_keys: MutableList<String> = ArrayList()
val settings_keys = mutableListOf<String>()
while (settings_iter.hasNext()) {
settings_keys.add(settings_iter.next())
}
Expand Down

0 comments on commit 037e32f

Please sign in to comment.