Prefer string constants to strings.

This commit is contained in:
Jake Petroules committed 2014-08-27 19:58:10 -04:00
1 parent a4c5e78794
commit 945a82e9f0
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@
if ([[child name] isEqualToString:@"enclosure"])
[deltas addObject:[(NSXMLElement *)child attributesAsDictionary]];
}
dict[@"deltas"] = deltas;
dict[name] = deltas;
}
else if ([name isEqualToString:SUAppcastTagsKey]) {
NSMutableArray *tags = [NSMutableArray array];
+3 -3
View File
@@ -160,12 +160,12 @@
self.releaseNotesURL = nil;
}
if (dict[@"deltas"]) {
NSArray *deltaDictionaries = dict[SUAppcastDeltasKey];
if (deltaDictionaries) {
NSMutableDictionary *deltas = [NSMutableDictionary dictionary];
NSArray *deltaDictionaries = dict[@"deltas"];
for (NSDictionary *deltaDictionary in deltaDictionaries) {
NSMutableDictionary *fakeAppCastDict = [dict mutableCopy];
[fakeAppCastDict removeObjectForKey:@"deltas"];
[fakeAppCastDict removeObjectForKey:SUAppcastDeltasKey];
fakeAppCastDict[@"enclosure"] = deltaDictionary;
SUAppcastItem *deltaItem = [[[self class] alloc] initWithDictionary:fakeAppCastDict];