mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-03-29 15:59:12 +08:00
Fix nullability warning in test
This commit is contained in:
@@ -229,11 +229,15 @@
|
||||
|
||||
- (void)testErrorOnNilURLDownload
|
||||
{
|
||||
|
||||
dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
|
||||
__block NSError *outError = nil;
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wnonnull"
|
||||
[self.imageManager downloadImageWithURL:nil
|
||||
options:PINRemoteImageManagerDownloadOptionsNone
|
||||
completion:^(PINRemoteImageManagerResult *result)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
outError = result.error;
|
||||
dispatch_semaphore_signal(semaphore);
|
||||
|
||||
Reference in New Issue
Block a user