Skip to content

Commit

Permalink
Fix false positive analyzer warning about resumableUpdate type
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo committed Oct 14, 2023
1 parent bd90fb7 commit 4af7711
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 4af7711

Please sign in to comment.