Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
getsentry-bot committed Oct 16, 2024
1 parent 1891a3b commit 822f271
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Sources/Sentry/SentryFileManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ - (void)deleteOldEnvelopesFromPath:(NSString *)envelopesPath
}
}

- (BOOL)isDirectory:(NSString *)path {
- (BOOL)isDirectory:(NSString *)path
{
BOOL isDir = NO;
return [NSFileManager.defaultManager fileExistsAtPath:path isDirectory:&isDir] && isDir;
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/Sentry/SentrySessionReplayIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ - (void)cleanUp
NSDictionary<NSString *, id> *lastReplayInfo = [self lastReplayInfo];
NSString *lastReplayFolder = lastReplayInfo[@"path"];

SentryFileManager * fileManager = SentryDependencyContainer.sharedInstance.fileManager;
SentryFileManager *fileManager = SentryDependencyContainer.sharedInstance.fileManager;
// Mapping replay folder here and not in dispatched queue to prevent a race condition between
// listing files and creating a new replay session.
NSArray *replayFiles = [fileManager allFilesInFolder:replayDir.path];
Expand All @@ -393,7 +393,7 @@ - (void)cleanUp
if ([file isEqualToString:lastReplayFolder]) {
continue;
}

NSString *filePath = [replayDir.path stringByAppendingPathComponent:file];

// Check if the file is a directory before deleting it.
Expand Down

0 comments on commit 822f271

Please sign in to comment.