mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-29 16:30:49 +00:00
refactoring
This commit is contained in:
parent
ea59568b6f
commit
80bc09df92
@ -65,7 +65,7 @@ class NewRelayListViewModel: ViewModel() {
|
||||
}
|
||||
|
||||
fun addRelay(relay: Relay) {
|
||||
if (relays.value.filter { it.url == relay.url }.isNotEmpty()) return
|
||||
if (relays.value.any { it.url == relay.url }) return
|
||||
|
||||
_relays.update {
|
||||
it.plus(relay)
|
||||
|
Loading…
Reference in New Issue
Block a user