code review: move unnecessary __block allocation

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent a730381424
commit f005b66fa5

@ -414,7 +414,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
// We can avoid these crashes by simply copying the Data.
//
// TODO: Move the iOSVersion header to SSK.
__block NSData *dataCopy = (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(10, 0) ? data : [data copy]);
NSData *dataCopy = (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(10, 0) ? data : [data copy]);
dispatch_async([OWSDispatch attachmentsQueue], ^{
TSAttachmentStream *attachmentStream = [[TSAttachmentStream alloc] initWithContentType:contentType];

Loading…
Cancel
Save