Commit dc173387 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Changes the parameter name as definided from its supertype.

parent 5d0fb955
......@@ -14,12 +14,12 @@ class SharedPreferencesAccountsRepository(
private val moshi: Moshi
) : AccountsRepository {
override fun save(newAccount: Account) {
override fun save(account: Account) {
val accounts = load()
val newList = accounts.filter { account -> newAccount.serverUrl != account.serverUrl }
val newList = accounts.filter { it.serverUrl != it.serverUrl }
.toMutableList()
newList.add(0, newAccount)
newList.add(0, account)
save(newList)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment