Detekt: This explicit usage of `it` as the lambda parameter name can be omitted. [ExplicitItLambdaParameter]
This commit is contained in:
parent
40f8d94954
commit
62f2fe1c16
|
@ -119,7 +119,7 @@ internal class EventSenderProcessorThread @Inject constructor(
|
||||||
|
|
||||||
override fun cancel(eventId: String, roomId: String) {
|
override fun cancel(eventId: String, roomId: String) {
|
||||||
(currentTask as? SendEventQueuedTask)
|
(currentTask as? SendEventQueuedTask)
|
||||||
?.takeIf { it -> it.event.eventId == eventId && it.event.roomId == roomId }
|
?.takeIf { it.event.eventId == eventId && it.event.roomId == roomId }
|
||||||
?.cancel()
|
?.cancel()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ class RoomMemberProfileViewModel @AssistedInject constructor(
|
||||||
it.fold(true) { prev, dev -> prev && (dev.trustLevel?.crossSigningVerified == true) }
|
it.fold(true) { prev, dev -> prev && (dev.trustLevel?.crossSigningVerified == true) }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
.execute { it ->
|
.execute {
|
||||||
copy(
|
copy(
|
||||||
allDevicesAreTrusted = it()?.first == true,
|
allDevicesAreTrusted = it()?.first == true,
|
||||||
allDevicesAreCrossSignedTrusted = it()?.second == true
|
allDevicesAreCrossSignedTrusted = it()?.second == true
|
||||||
|
|
Loading…
Reference in New Issue