Skip to content

Commit

Permalink
Fixes Typo In Enumeration (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinlieu authored and robinmacharg committed Feb 10, 2020
1 parent 24ab3bd commit 4e84cb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/BugsnagCrashSentry.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ - (void)install:(BugsnagConfiguration *)config
[BSG_KSCrash sharedInstance].sink = sink;
[BSG_KSCrash sharedInstance].introspectMemory = YES;
[BSG_KSCrash sharedInstance].deleteBehaviorAfterSendAll =
BSG_KSCDeleteOnSucess;
BSG_KSCDeleteOnSuccess;
[BSG_KSCrash sharedInstance].onCrash = onCrash;
[BSG_KSCrash sharedInstance].maxStoredReports = BSG_MAX_STORED_REPORTS;

Expand Down
2 changes: 1 addition & 1 deletion Source/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

typedef enum {
BSG_KSCDeleteNever,
BSG_KSCDeleteOnSucess,
BSG_KSCDeleteOnSuccess,
BSG_KSCDeleteAlways
} BSG_KSCDeleteBehavior;

Expand Down
2 changes: 1 addition & 1 deletion Source/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ - (void)sendAllReportsWithCompletion:
if (error != nil) {
BSG_KSLOG_ERROR(@"Failed to send reports: %@", error);
}
if ((self.deleteBehaviorAfterSendAll == BSG_KSCDeleteOnSucess &&
if ((self.deleteBehaviorAfterSendAll == BSG_KSCDeleteOnSuccess &&
completed) ||
self.deleteBehaviorAfterSendAll == BSG_KSCDeleteAlways) {
[self deleteAllReports];
Expand Down

0 comments on commit 4e84cb7

Please sign in to comment.