Minor Reformatting
This commit is contained in:
parent
c091bb5ebe
commit
c830a82080
1 changed files with 2 additions and 2 deletions
|
|
@ -237,10 +237,10 @@ static void AFSwizzleClassMethodWithClassAndSelectorUsingBlock(Class klass, SEL
|
||||||
- (void)setCompletionBlockWithSuccess:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
|
- (void)setCompletionBlockWithSuccess:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
|
||||||
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
|
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
|
||||||
{
|
{
|
||||||
// completion block is manually nilled out in AFURLConnectionOperation to break the retain cycle.
|
// completionBlock is manually nilled out in AFURLConnectionOperation to break the retain cycle.
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Warc-retain-cycles"
|
#pragma clang diagnostic ignored "-Warc-retain-cycles"
|
||||||
self.completionBlock = ^ {
|
self.completionBlock = ^{
|
||||||
if ([self isCancelled]) {
|
if ([self isCancelled]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue