Detekt: This explicit usage of it as the lambda parameter name can be omitted. [ExplicitItLambdaParameter]

This commit is contained in:
Benoit Marty 2022-07-19 14:59:57 +02:00 committed by Benoit Marty
parent 40f8d94954
commit 62f2fe1c16
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ internal class EventSenderProcessorThread @Inject constructor(
override fun cancel(eventId: String, roomId: String) {
(currentTask as? SendEventQueuedTask)
?.takeIf { it -> it.event.eventId == eventId && it.event.roomId == roomId }
?.takeIf { it.event.eventId == eventId && it.event.roomId == roomId }
?.cancel()
}

View File

@ -117,7 +117,7 @@ class RoomMemberProfileViewModel @AssistedInject constructor(
it.fold(true) { prev, dev -> prev && (dev.trustLevel?.crossSigningVerified == true) }
)
}
.execute { it ->
.execute {
copy(
allDevicesAreTrusted = it()?.first == true,
allDevicesAreCrossSignedTrusted = it()?.second == true