Skip to content

Commit 86e00c5

Browse files
committed
FMT
1 parent ff94345 commit 86e00c5

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

firebase-sessions/src/main/kotlin/com/google/firebase/sessions/SessionGenerator.kt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ package com.google.firebase.sessions
1919
import java.util.UUID
2020

2121
/**
22-
* [SessionInfo] is a data class responsible for storing information about the
23-
* current Session.
22+
* [SessionInfo] is a data class responsible for storing information about the current Session.
2423
*
2524
* @hide
2625
*/
@@ -55,11 +54,9 @@ internal class SessionGenerator(collectEvents: Boolean) {
5554

5655
sessionIndex += 1
5756

58-
thisSession = SessionInfo(newSessionId,
59-
firstSessionId,
60-
collectEvents,
61-
sessionIndex)
57+
thisSession = SessionInfo(newSessionId, firstSessionId, collectEvents, sessionIndex)
6258
}
6359

64-
val currentSession: SessionInfo get() = thisSession
60+
val currentSession: SessionInfo
61+
get() = thisSession
6562
}

firebase-sessions/src/test/kotlin/com/google/firebase/sessions/SessionGeneratorTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
package com.google.firebase.sessions
1818

1919
import com.google.common.truth.Truth.assertThat
20-
import kotlin.time.Duration
21-
import kotlin.time.Duration.Companion.minutes
2220
import org.junit.Test
2321

2422
class SessionGeneratorTest {
@@ -56,7 +54,8 @@ class SessionGeneratorTest {
5654

5755
assertThat(isValidSessionId(sessionGenerator.currentSession.sessionId)).isEqualTo(true)
5856
assertThat(isValidSessionId(sessionGenerator.currentSession.firstSessionId)).isEqualTo(true)
59-
assertThat(sessionGenerator.currentSession.firstSessionId).isEqualTo(sessionGenerator.currentSession.sessionId)
57+
assertThat(sessionGenerator.currentSession.firstSessionId)
58+
.isEqualTo(sessionGenerator.currentSession.sessionId)
6059
assertThat(sessionGenerator.currentSession.shouldDispatchEvents).isEqualTo(true)
6160
assertThat(sessionGenerator.currentSession.sessionIndex).isEqualTo(0)
6261
}

0 commit comments

Comments
 (0)