Skip to content

Commit c84887b

Browse files
antonisclaude
andcommitted
style(ios): Apply clang-format to RNSentry.mm
Verified locally via clang-format --Werror. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8604b04 commit c84887b

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

packages/core/ios/RNSentry.mm

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,8 @@ + (BOOL)captureReplayWithReturnValue
865865
}
866866

867867
#if TARGET_OS_IPHONE || TARGET_OS_MACCATALYST
868-
static BOOL RNSentryIsPathUnderAllowedRoots(NSString *path)
868+
static BOOL
869+
RNSentryIsPathUnderAllowedRoots(NSString *path)
869870
{
870871
if (path.length == 0) {
871872
return NO;
@@ -881,18 +882,19 @@ static BOOL RNSentryIsPathUnderAllowedRoots(NSString *path)
881882
if (tmp.length > 0) {
882883
[roots addObject:[tmp stringByResolvingSymlinksInPath]];
883884
}
884-
NSArray<NSString *> *caches = NSSearchPathForDirectoriesInDomains(
885-
NSCachesDirectory, NSUserDomainMask, YES);
885+
NSArray<NSString *> *caches
886+
= NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
886887
if (caches.firstObject) {
887888
[roots addObject:[caches.firstObject stringByResolvingSymlinksInPath]];
888889
}
889-
NSArray<NSString *> *docs = NSSearchPathForDirectoriesInDomains(
890-
NSDocumentDirectory, NSUserDomainMask, YES);
890+
NSArray<NSString *> *docs
891+
= NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
891892
if (docs.firstObject) {
892893
[roots addObject:[docs.firstObject stringByResolvingSymlinksInPath]];
893894
}
894895
for (NSString *root in roots) {
895-
NSString *rootWithSlash = [root hasSuffix:@"/"] ? root : [root stringByAppendingString:@"/"];
896+
NSString *rootWithSlash =
897+
[root hasSuffix:@"/"] ? root : [root stringByAppendingString:@"/"];
896898
if ([resolved isEqualToString:root] || [resolved hasPrefix:rootWithSlash]) {
897899
return YES;
898900
}
@@ -912,7 +914,8 @@ static BOOL RNSentryIsPathUnderAllowedRoots(NSString *path)
912914
}
913915
if (!RNSentryIsPathUnderAllowedRoots(fileURL.path)) {
914916
reject(@"SentryReactNative",
915-
@"The provided URI points outside the app's temporary, caches, or documents directories",
917+
@"The provided URI points outside the app's temporary, caches, or documents "
918+
@"directories",
916919
nil);
917920
return;
918921
}

0 commit comments

Comments
 (0)