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
@@ -58,15 +58,10 @@ NSString *SBPresetManagerUpdatedNotification = @"SBPresetManagerUpdatedNotificat
|
||||
|
||||
- (NSString *)appSupportPath
|
||||
{
|
||||
NSString *appSupportPath = nil;
|
||||
|
||||
NSArray *allPaths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory,
|
||||
NSUserDomainMask,
|
||||
YES);
|
||||
if ([allPaths count])
|
||||
appSupportPath = [[allPaths objectAtIndex:0] stringByAppendingPathComponent:@"Subler"];
|
||||
|
||||
return appSupportPath;
|
||||
return [[allPaths firstObject] stringByAppendingPathComponent:@"Subler"];
|
||||
}
|
||||
|
||||
- (BOOL)loadPresets
|
||||
|
||||
Reference in new issue
Block a user