mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-01 12:54:03 +08:00
initialized error to nil
This commit is contained in:
@@ -627,7 +627,7 @@ typedef void (^PINRemoteImageManagerDataCompletion)(NSData *data, NSError *error
|
||||
|
||||
if (completion && ((image || animatedImage) || (url == nil))) {
|
||||
//If we're on the main thread, special case to call completion immediately
|
||||
NSError *error;
|
||||
NSError *error = nil;
|
||||
if (!url) {
|
||||
error = [NSError errorWithDomain:NSURLErrorDomain
|
||||
code:NSURLErrorUnsupportedURL
|
||||
|
||||
Reference in New Issue
Block a user