Skip to content

Commit a639f49

Browse files
committed
Return error only if exists.
1 parent a04d424 commit a639f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Downloader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ - (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTas
8686

8787
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error
8888
{
89-
return _params.errorCallback(error);
89+
return error ? _params.errorCallback(error) : nil;
9090
}
9191

9292

0 commit comments

Comments
 (0)