Skip to content

Commit

Permalink
Suppress nil analyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo committed Nov 11, 2024
1 parent 5f562d9 commit 282c5c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sparkle/SUAppcastDriver.m
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,10 @@ + (SUAppcastItem *)bestItemFromAppcastItems:(NSArray *)appcastItems getDeltaItem
// Give the delegate a chance to provide a custom version comparator
id<SPUUpdaterDelegate> updaterDelegate = _updaterDelegate;
if ([updaterDelegate respondsToSelector:@selector((versionComparatorForUpdater:))]) {
comparator = [updaterDelegate versionComparatorForUpdater:_updater];
SPUUpdater *updater = _updater;
if (updater != nil) {
comparator = [updaterDelegate versionComparatorForUpdater:updater];
}
}
#pragma clang diagnostic pop

Expand Down

0 comments on commit 282c5c2

Please sign in to comment.