Skip to content

Commit

Permalink
ci: Fix complaining static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 committed Apr 22, 2024
1 parent 7b98acc commit 55e9366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mParticle-Apple-SDK/MPBackendController.m
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,7 @@ - (void)cleanUp:(NSTimeInterval)currentTime {
MPPersistenceController *persistence = [MParticle sharedInstance].persistenceController;
if (nextCleanUpTime < currentTime) {
NSNumber *persistanceMaxAgeSeconds = [MParticle sharedInstance].persistenceMaxAgeSeconds;
NSTimeInterval maxAgeSeconds = persistanceMaxAgeSeconds ? persistanceMaxAgeSeconds.doubleValue : NINETY_DAYS;
NSTimeInterval maxAgeSeconds = persistanceMaxAgeSeconds == nil ? NINETY_DAYS : persistanceMaxAgeSeconds.doubleValue;
[persistence deleteRecordsOlderThan:(currentTime - maxAgeSeconds)];
nextCleanUpTime = currentTime + TWENTY_FOUR_HOURS;
}
Expand Down

0 comments on commit 55e9366

Please sign in to comment.