Skip to content

Commit

Permalink
Fix false positive analyzer warning about resumableUpdate type (#2454)
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo authored Oct 17, 2023
1 parent a00fd1d commit 70a9ad5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sparkle/SPUCoreBasedUpdateDriver.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ - (void)deferInformationalUpdate:(SUAppcastItem *)updateItem secondaryUpdate:(SU

- (void)extractDownloadedUpdate
{
assert(_resumableUpdate != nil);
[self extractUpdate:_resumableUpdate];
id<SPUResumableUpdate> resumableUpdate = _resumableUpdate;
assert(resumableUpdate != nil && [resumableUpdate isKindOfClass:[SPUDownloadedUpdate class]]);
[self extractUpdate:(SPUDownloadedUpdate *)resumableUpdate];
}

- (void)clearDownloadedUpdate
Expand Down

0 comments on commit 70a9ad5

Please sign in to comment.