Update tvOS available check on test case

This commit is contained in:
DreamPiggy 2019-10-27 22:48:43 +08:00
parent b1f8cf5ed2
commit 0db2169665
1 changed files with 1 additions and 1 deletions

View File

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