Skip to content

Commit

Permalink
chore: correct syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Masini committed Mar 20, 2019
1 parent 71e5582 commit 27e9eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios/FastImage/FFFastImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ - (void)sendOnLoad:(UIImage *)image {
@"width":[NSNumber numberWithDouble:image.size.width],
@"height":[NSNumber numberWithDouble:image.size.height]
};
if (_onFastImageLoad) {
_onFastImageLoad(self.onLoadEvent);
if (self.onFastImageLoad) {
self.onFastImageLoad(self.onLoadEvent);
}
}

Expand Down Expand Up @@ -186,7 +186,7 @@ - (void)downloadImage:(FFFastImageSource *) source options:(SDWebImageOptions) o
NSTimeInterval delayInSeconds = (retry + 1) * 5.0; // will retry after 0.5, 1.0 or 1.5 seconds
dispatch_time_t trigger = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
dispatch_after(trigger, dispatch_get_main_queue(), ^{
[weakSelf downloadImage:_source options:options retry:retry + 1];
[weakSelf downloadImage:source options:options retry:retry + 1];
});
}
} else {
Expand Down

0 comments on commit 27e9eac

Please sign in to comment.