Fixed some static analyizer warnings.
This commit is contained in:
1 parent
a7131d300c
commit
64163973f3
8 files changed
+25
-16
No files matched your search
+9
-5
@@ -108,11 +108,15 @@
|
||||
}
|
||||
|
||||
- (NSUInteger) ratingIndexForiTunesCode:(NSString *)aiTunesCode {
|
||||
for (NSUInteger i = 0; i < [iTunesCodes count]; i++) {
|
||||
if ([[iTunesCodes objectAtIndex:i] isEqualToString:aiTunesCode]) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
NSUInteger i = 0;
|
||||
|
||||
for (NSString *code in iTunesCodes) {
|
||||
if ([code isEqualToString:aiTunesCode]) {
|
||||
return i;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
return [self unknownIndex];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user