simplify assign downloaderOperation's minimumProgressInterval code
This commit is contained in:
parent
71bff450b3
commit
ce753df0cc
|
@ -291,9 +291,7 @@ static void * SDWebImageDownloaderContext = &SDWebImageDownloaderContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([operation respondsToSelector:@selector(setMinimumProgressInterval:)]) {
|
if ([operation respondsToSelector:@selector(setMinimumProgressInterval:)]) {
|
||||||
NSTimeInterval minimumProgressInterval = self.config.minimumProgressInterval;
|
operation.minimumProgressInterval = MIN(MAX(self.config.minimumProgressInterval, 0), 1);
|
||||||
minimumProgressInterval = MIN(MAX(minimumProgressInterval, 0), 1);
|
|
||||||
operation.minimumProgressInterval = minimumProgressInterval;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options & SDWebImageDownloaderHighPriority) {
|
if (options & SDWebImageDownloaderHighPriority) {
|
||||||
|
|
Loading…
Reference in New Issue