From ce753df0cc0c3c039ffb36b369136b6d49d8913d Mon Sep 17 00:00:00 2001 From: Insofan <282132315@qq.com> Date: Thu, 14 Mar 2019 15:27:29 +0800 Subject: [PATCH] simplify assign downloaderOperation's minimumProgressInterval code --- SDWebImage/SDWebImageDownloader.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SDWebImage/SDWebImageDownloader.m b/SDWebImage/SDWebImageDownloader.m index 60c6767e..240e6372 100644 --- a/SDWebImage/SDWebImageDownloader.m +++ b/SDWebImage/SDWebImageDownloader.m @@ -291,9 +291,7 @@ static void * SDWebImageDownloaderContext = &SDWebImageDownloaderContext; } if ([operation respondsToSelector:@selector(setMinimumProgressInterval:)]) { - NSTimeInterval minimumProgressInterval = self.config.minimumProgressInterval; - minimumProgressInterval = MIN(MAX(minimumProgressInterval, 0), 1); - operation.minimumProgressInterval = minimumProgressInterval; + operation.minimumProgressInterval = MIN(MAX(self.config.minimumProgressInterval, 0), 1); } if (options & SDWebImageDownloaderHighPriority) {