File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments