From f489189a76e46f51b13eb11dc15d9e4051298c93 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Thu, 1 Mar 2012 08:59:38 -0800 Subject: [PATCH] Fixing indentation of #225 --- AFNetworking/AFURLConnectionOperation.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 8442847..6fa6a61 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -356,9 +356,9 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat // Manually send this delegate message since `[self.connection cancel]` causes the connection to never send another message to its delegate NSDictionary *userInfo = nil; - if (self.request.URL) { - userInfo = [NSDictionary dictionaryWithObject:[self.request URL] forKey:NSURLErrorFailingURLErrorKey]; - } + if ([self.request URL]) { + userInfo = [NSDictionary dictionaryWithObject:[self.request URL] forKey:NSURLErrorFailingURLErrorKey]; + } [self performSelector:@selector(connection:didFailWithError:) withObject:self.connection withObject:[NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorCancelled userInfo:userInfo]]; } }