Skip to content

Commit a3220ff

Browse files
ref(cache): rename isLateDuplicateStart to isAlreadyPersisted
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 9d3d311 commit a3220ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sentry/src/main/java/io/sentry/cache/EnvelopeCache.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private boolean storeInternal(final @NotNull SentryEnvelope envelope, final @Not
137137
if (HintUtils.hasType(hint, SessionStart.class)) {
138138
try (final @NotNull ISentryLifecycleToken ignored = sessionLock.acquire()) {
139139
final @Nullable Session startingSession = readSessionFromEnvelope(envelope);
140-
if (!isLateDuplicateStart(startingSession)) {
140+
if (!isAlreadyPersisted(startingSession)) {
141141
movePreviousSession(currentSessionFile, previousSessionFile);
142142
if (startingSession != null) {
143143
writeSessionToDisk(currentSessionFile, startingSession);
@@ -335,7 +335,7 @@ private void writeCrashMarkerFile() {
335335
*
336336
* <p>A null session id never matches, so sessions we cannot tell apart are rotated as before.
337337
*/
338-
private boolean isLateDuplicateStart(final @Nullable Session startingSession) {
338+
private boolean isAlreadyPersisted(final @Nullable Session startingSession) {
339339
if (startingSession == null) {
340340
return false;
341341
}

0 commit comments

Comments
 (0)