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
@@ -407,7 +407,7 @@
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
|
||||
if ([paths count]) {
|
||||
NSString *bundleName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
|
||||
path = [[paths objectAtIndex:0] stringByAppendingPathComponent:bundleName];
|
||||
path = [[paths firstObject] stringByAppendingPathComponent:bundleName];
|
||||
}
|
||||
NSArray *contents = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil];
|
||||
for (NSString *filename in contents) {
|
||||
|
||||
Reference in new issue
Block a user