Skip to content

Commit

Permalink
fix: typo adress -> address (#3102)
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight authored Jun 16, 2023
1 parent b385962 commit 189b629
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Sources/Sentry/SentryDebugImageProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ - (void)extractDebugImageAddressFromFrames:(NSArray<SentryFrame *> *)frames
- (NSArray<SentryDebugMeta *> *)getDebugImagesForFrames:(NSArray<SentryFrame *> *)frames
isCrash:(BOOL)isCrash
{
NSMutableSet<NSString *> *imageAdresses = [[NSMutableSet alloc] init];
[self extractDebugImageAddressFromFrames:frames intoSet:imageAdresses];
return [self getDebugImagesForAddresses:imageAdresses isCrash:isCrash];
NSMutableSet<NSString *> *imageAddresses = [[NSMutableSet alloc] init];
[self extractDebugImageAddressFromFrames:frames intoSet:imageAddresses];
return [self getDebugImagesForAddresses:imageAddresses isCrash:isCrash];
}

- (NSArray<SentryDebugMeta *> *)getDebugImagesForThreads:(NSArray<SentryThread *> *)threads
Expand All @@ -87,13 +87,13 @@ - (void)extractDebugImageAddressFromFrames:(NSArray<SentryFrame *> *)frames
- (NSArray<SentryDebugMeta *> *)getDebugImagesForThreads:(NSArray<SentryThread *> *)threads
isCrash:(BOOL)isCrash
{
NSMutableSet<NSString *> *imageAdresses = [[NSMutableSet alloc] init];
NSMutableSet<NSString *> *imageAddresses = [[NSMutableSet alloc] init];

for (SentryThread *thread in threads) {
[self extractDebugImageAddressFromFrames:thread.stacktrace.frames intoSet:imageAdresses];
[self extractDebugImageAddressFromFrames:thread.stacktrace.frames intoSet:imageAddresses];
}

return [self getDebugImagesForAddresses:imageAdresses isCrash:isCrash];
return [self getDebugImagesForAddresses:imageAddresses isCrash:isCrash];
}

- (NSArray<SentryDebugMeta *> *)getDebugImages
Expand Down
4 changes: 2 additions & 2 deletions Sources/Sentry/SentryUser.m
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ - (BOOL)isEqualToUser:(SentryUser *)user
return NO;
}

NSString *otherIpAdress = user.ipAddress;
if (self.ipAddress != otherIpAdress && ![self.ipAddress isEqualToString:otherIpAdress]) {
NSString *otherIpAddress = user.ipAddress;
if (self.ipAddress != otherIpAddress && ![self.ipAddress isEqualToString:otherIpAddress]) {
return NO;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3125,4 +3125,4 @@
"tags": {}
},
"debug": {}
}
}
8 changes: 4 additions & 4 deletions Tests/SentryTests/SentryKSCrashReportConverterTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ - (void)testNewNSException

- (void)testFatalError
{
[self isValidReport:@"Resources/fatal-error-notable-adresses"];
NSDictionary *rawCrash = [self getCrashReport:@"Resources/fatal-error-notable-adresses"];
[self isValidReport:@"Resources/fatal-error-notable-addresses"];
NSDictionary *rawCrash = [self getCrashReport:@"Resources/fatal-error-notable-addresses"];
SentryCrashReportConverter *reportConverter =
[[SentryCrashReportConverter alloc] initWithReport:rawCrash inAppLogic:self.inAppLogic];
SentryEvent *event = [reportConverter convertReportToEvent];
Expand Down Expand Up @@ -327,8 +327,8 @@ - (void)testFatalErrorBinary:(NSString *)reportPath expectedValue:(NSString *)ex

- (void)testUserInfo
{
[self isValidReport:@"Resources/fatal-error-notable-adresses"];
NSDictionary *rawCrash = [self getCrashReport:@"Resources/fatal-error-notable-adresses"];
[self isValidReport:@"Resources/fatal-error-notable-addresses"];
NSDictionary *rawCrash = [self getCrashReport:@"Resources/fatal-error-notable-addresses"];
SentryCrashReportConverter *reportConverter =
[[SentryCrashReportConverter alloc] initWithReport:rawCrash inAppLogic:self.inAppLogic];
reportConverter.userContext = @{
Expand Down

0 comments on commit 189b629

Please sign in to comment.