Skip to content

Commit

Permalink
[Issue AFNetworking#1730] Minor refactoring / reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Jan 16, 2014
1 parent d736cc4 commit a9ca3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UIKit+AFNetworking/UIProgressView+AFNetworking.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ - (void)setProgressWithUploadProgressOfOperation:(AFURLConnectionOperation *)ope

dispatch_async(dispatch_get_main_queue(), ^{
if (totalBytesExpectedToWrite > 0) {
__strong typeof (weakSelf) strongSelf = weakSelf;
__strong __typeof(weakSelf)strongSelf = weakSelf;
[strongSelf setProgress:(totalBytesWritten / (totalBytesExpectedToWrite * 1.0f)) animated:animated];
}
});
Expand All @@ -131,7 +131,7 @@ - (void)setProgressWithDownloadProgressOfOperation:(AFURLConnectionOperation *)o

dispatch_async(dispatch_get_main_queue(), ^{
if (totalBytesExpectedToRead > 0) {
__strong typeof (weakSelf) strongSelf = weakSelf;
__strong __typeof(weakSelf)strongSelf = weakSelf;
[strongSelf setProgress:(totalBytesRead / (totalBytesExpectedToRead * 1.0f)) animated:animated];
}
});
Expand Down

0 comments on commit a9ca3d0

Please sign in to comment.