Skip to content

Commit

Permalink
Edited some comments
Browse files Browse the repository at this point in the history
Updated some mutable object instantiations
  • Loading branch information
erkanyildiz committed Sep 21, 2017
1 parent f79a24a commit 84fd13b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CountlyConnectionManager.m
Expand Up @@ -279,7 +279,7 @@ - (void)sendCrashReport:(NSString *)report immediately:(BOOL)immediately;
return;
}

//NOTE: to prevent `event` and `end_session` requests from being added to queue and started, after `sendEvents` and `endSession` calls below.
//NOTE: to prevent `event` and `end_session` requests from being started, after `sendEvents` and `endSession` calls below.
isCrashing = YES;

[self sendEvents];
Expand Down Expand Up @@ -404,7 +404,7 @@ - (NSString *)queryEssentials

- (NSString *)additionalInfo
{
NSMutableString *additionalInfo = @"".mutableCopy;
NSMutableString *additionalInfo = NSMutableString.new;

if (CountlyCommon.sharedInstance.ISOCountryCode)
[additionalInfo appendFormat:@"&%@=%@", kCountlyQSKeyCountryCode, CountlyCommon.sharedInstance.ISOCountryCode.cly_URLEscaped];
Expand Down
3 changes: 1 addition & 2 deletions CountlyCrashReporter.m
Expand Up @@ -168,8 +168,7 @@ void CountlySignalHandler(int signalCode)

free(lines);

NSMutableDictionary *userInfo = @{kCountlyCRKeySignalCode:@(signalCode)}.mutableCopy;
userInfo[kCountlyExceptionUserInfoBacktraceKey] = backtrace;
NSDictionary *userInfo = @{kCountlyCRKeySignalCode: @(signalCode), kCountlyExceptionUserInfoBacktraceKey: backtrace};
NSString *reason = [NSString stringWithFormat:@"App terminated by SIG%@", [NSString stringWithUTF8String:sys_signame[signalCode]].uppercaseString];
NSException *e = [NSException exceptionWithName:@"Fatal Signal" reason:reason userInfo:userInfo];

Expand Down

0 comments on commit 84fd13b

Please sign in to comment.