Fixed: change variable name

Changed "returnValue" to "connection" - more descriptive.

Ref: https://github.com/cappuccino/cappuccino/pull/2144#commitcomment-6769088
This commit is contained in:
Ryan Bannon committed 2014-06-23 15:47:40 -04:00
1 parent ba9eac3ea4
commit 8be05b404c
1 file changed
+4 -4
+4 -4
View File
@@ -153,11 +153,11 @@ var CPURLConnectionDelegate = nil;
//overloaded method that allows user to set _withCredentials
+ (CPURLConnection)connectionWithRequest:(CPURLRequest)aRequest delegate:(id)aDelegate withCredentials:(BOOL)withCredentials
{
var returnValue = [[self alloc] initWithRequest:aRequest delegate:aDelegate startImmediately:NO];
var connection = [[self alloc] initWithRequest:aRequest delegate:aDelegate startImmediately:NO];
[returnValue setWithCredentials:withCredentials];
[returnValue start];
return returnValue;
[connection setWithCredentials:withCredentials];
[connection start];
return connection;
}
/*