diff --git a/Sparkle/SUAppcastItem.m b/Sparkle/SUAppcastItem.m index 67eeee07..7ee42020 100644 --- a/Sparkle/SUAppcastItem.m +++ b/Sparkle/SUAppcastItem.m @@ -57,7 +57,7 @@ - (BOOL)isInformationOnlyUpdate { - return (([self infoURL] != nil) && ([self fileURL] == nil)); + return self.infoURL && !self.fileURL; } - (instancetype)initWithDictionary:(NSDictionary *)dict diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index ccfeba58..6ce7381e 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -232,17 +232,17 @@ [self.versionDisplayer formatVersion:&updateItemVersion andVersion:&hostVersion]; } - // We display a slightly different summary depending on if it's an "info-only" item or not - NSString* actionSentence = nil; + // We display a slightly different summary depending on if it's an "info-only" item or not + NSString *actionSentence = nil; - if ([self.updateItem isInformationOnlyUpdate]) - { - actionSentence = SULocalizedString(@"Would you like to learn more about this update on the web?", @"Final portion of descriptionText when the update informational with no download."); - } - else - { - actionSentence = SULocalizedString(@"Would you like to download it now?", @"Final portion of descriptionText when the update is downloadable."); - } + if (self.updateItem.isInformationOnlyUpdate) + { + actionSentence = SULocalizedString(@"Would you like to learn more about this update on the web?", @"Final portion of descriptionText when the update informational with no download."); + } + else + { + actionSentence = SULocalizedString(@"Would you like to download it now?", @"Final portion of descriptionText when the update is downloadable."); + } return [NSString stringWithFormat:SULocalizedString(@"%@ %@ is now available--you have %@. %@", @"Description text for SUUpdateAlert. The final placeholder %4$@ will be substituted with one of the two strings below, depending on whether it's an informational or download update."), [self.host name], updateItemVersion, hostVersion, actionSentence]; }