mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Prefer string constants to strings.
This commit is contained in:
1 parent
a4c5e78794
commit
945a82e9f0
2 files changed
+4
-4
No files matched your search
Vendored
+1
-1
@@ -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];
|
||||
|
||||
Vendored
+3
-3
@@ -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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user