Reducing line count by removing some line breaks

This commit is contained in:
Maxime NATUREL 2023-02-03 17:30:00 +01:00
parent a55698c5f4
commit 055ed35fa6
2 changed files with 2 additions and 7 deletions

View file

@ -30,10 +30,7 @@ class GetTimelineEventUseCase @Inject constructor(
) {
fun execute(roomId: String, eventId: String): Flow<TimelineEvent> {
return activeSessionHolder
.getActiveSession()
.roomService()
.getRoom(roomId)
return activeSessionHolder.getActiveSession().roomService().getRoom(roomId)
?.timelineService()
?.getTimelineEventLive(eventId)
?.asFlow()

View file

@ -28,9 +28,7 @@ class GetEndedPollEventIdUseCase @Inject constructor(
fun execute(roomId: String, startPollEventId: String): String? {
val result = runCatching {
activeSessionHolder.getActiveSession()
.roomService()
.getRoom(roomId)
activeSessionHolder.getActiveSession().roomService().getRoom(roomId)
?.timelineService()
?.getTimelineEventsRelatedTo(RelationType.REFERENCE, startPollEventId)
?.find { it.root.isPollEnd() }