Squashing compiler warnings in AFURLConnectionOperation -initWithCoder
This commit is contained in:
parent
19a491b45b
commit
e8c8367e99
1 changed files with 3 additions and 1 deletions
|
|
@ -608,7 +608,9 @@ didReceiveResponse:(NSURLResponse *)response
|
||||||
|
|
||||||
- (id)initWithCoder:(NSCoder *)aDecoder {
|
- (id)initWithCoder:(NSCoder *)aDecoder {
|
||||||
NSURLRequest *request = [aDecoder decodeObjectForKey:@"request"];
|
NSURLRequest *request = [aDecoder decodeObjectForKey:@"request"];
|
||||||
if (!request || ![self initWithRequest:request]) {
|
|
||||||
|
self = [self initWithRequest:request];
|
||||||
|
if (!self) {
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue