Used firstObject where possible to simplify some code.
This commit is contained in:
1 parent
e50b060828
commit
ef267c9b33
6 files changed
+14
-28
No files matched your search
@@ -92,10 +92,7 @@
|
||||
|
||||
- (NSString *)imageTitle {
|
||||
NSArray *a = [_artworkProviderName componentsSeparatedByString:@"|"];
|
||||
if ([a count] > 0) {
|
||||
return [a objectAtIndex:0];
|
||||
}
|
||||
return nil;
|
||||
return [a firstObject];
|
||||
}
|
||||
|
||||
- (NSString *)imageSubtitle {
|
||||
|
||||
Reference in new issue
Block a user