Skip to content

Commit 3dd986c

Browse files
committed
format
1 parent 1f490e4 commit 3dd986c

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

sentry/src/main/java/io/sentry/PreviousSessionFinalizer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ public void run() {
9393
// this means the session was already updated from tombstone data and there is no need
9494
// to consider the crash-marker file from the Native SDK. However, we can use this to
9595
// reset crashedLastRun.
96-
final @NotNull SentryCrashLastRunState crashLastRunState = SentryCrashLastRunState.getInstance();
96+
final @NotNull SentryCrashLastRunState crashLastRunState =
97+
SentryCrashLastRunState.getInstance();
9798
crashLastRunState.reset();
9899
crashLastRunState.setCrashedLastRun(true);
99100
} else if (crashMarkerFile.exists()) {

sentry/src/test/java/io/sentry/PreviousSessionFinalizerTest.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,14 @@ class PreviousSessionFinalizerTest {
245245

246246
val finalizer = fixture.getSut(tmpDir, session = crashedSession)
247247

248-
// If the EnvelopeCache stored a SessionStart and no native crash marker was present then crashedLastRun would be false
248+
// If the EnvelopeCache stored a SessionStart and no native crash marker was present then
249+
// crashedLastRun would be false
249250
SentryCrashLastRunState.getInstance().setCrashedLastRun(false)
250251

251252
finalizer.run()
252253

253-
// the finalizer must be aware that this could have happened before and reset the crashedLastRun to true
254+
// the finalizer must be aware that this could have happened before and reset the crashedLastRun
255+
// to true
254256
assertTrue(SentryCrashLastRunState.getInstance().isCrashedLastRun(null, false)!!)
255257
}
256258

0 commit comments

Comments
 (0)