Update tvOS available check on test case
This commit is contained in:
parent
b1f8cf5ed2
commit
0db2169665
|
@ -609,7 +609,7 @@
|
|||
SDWebImageDownloaderDecryptor *decryptor = [SDWebImageDownloaderDecryptor decryptorWithBlock:^NSData * _Nullable(NSData * _Nonnull data, NSURLResponse * _Nullable response) {
|
||||
if (@available(iOS 13, macOS 10.15, tvOS 13, *)) {
|
||||
return [data decompressedDataUsingAlgorithm:NSDataCompressionAlgorithmZlib error:nil];
|
||||
} else if (@available (iOS 9, macOS 10.11, *)) {
|
||||
} else if (@available (iOS 9, macOS 10.11, tvOS 9, *)) {
|
||||
NSMutableData *decodedData = [NSMutableData dataWithLength:10 * data.length];
|
||||
compression_decode_buffer((uint8_t *)decodedData.bytes, decodedData.length, data.bytes, data.length, nil, COMPRESSION_ZLIB);
|
||||
return [decodedData copy];
|
||||
|
|
Loading…
Reference in New Issue