Fix nullability warning in test

This commit is contained in:
Michael Schneider
2016-01-30 20:06:02 -08:00
parent 1c17ece5e6
commit c1d08020d4

View File

@@ -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);