Adding missing early return in setCompletionBlock:
This commit is contained in:
parent
f4e24f223f
commit
d2be778f9c
1 changed files with 1 additions and 0 deletions
|
|
@ -145,6 +145,7 @@ static inline NSString * AFKeyPathFromOperationState(AFOperationState state) {
|
|||
- (void)setCompletionBlock:(void (^)(void))block {
|
||||
if (!block) {
|
||||
[super setCompletionBlock:nil];
|
||||
return;
|
||||
}
|
||||
|
||||
__block id _blockSelf = self;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue