mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-19 01:50:42 +02:00
refactoring
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user