Enable detekt rules OptionalUnit and fix existing issues.

This commit is contained in:
Benoit Marty 2023-07-26 11:43:26 +02:00 committed by Benoit Marty
parent 4ba4bd1f56
commit 6fff373613
5 changed files with 10 additions and 8 deletions

View file

@ -152,8 +152,7 @@ class InviteListPresenter @Inject constructor(
client.getRoom(roomId)?.use {
it.leave().getOrThrow()
notificationDrawerManager.clearMembershipNotificationForRoom(client.sessionId, roomId)
}
Unit
}.let { }
}.runCatchingUpdatingState(declinedAction)
}