From e8c8367e9962be82c656fae5834db06093e9ed25 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Wed, 15 Aug 2012 10:21:41 -0700 Subject: [PATCH] Squashing compiler warnings in AFURLConnectionOperation -initWithCoder --- AFNetworking/AFURLConnectionOperation.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index d66af7a..88f593b 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -608,7 +608,9 @@ didReceiveResponse:(NSURLResponse *)response - (id)initWithCoder:(NSCoder *)aDecoder { NSURLRequest *request = [aDecoder decodeObjectForKey:@"request"]; - if (!request || ![self initWithRequest:request]) { + + self = [self initWithRequest:request]; + if (!self) { return nil; }