Fix some warnings.
This commit is contained in:
1 parent
2077febc70
commit
60758e225b
13 files changed
+25
-18
No files matched your search
@@ -88,12 +88,12 @@ NSString * const SBQueueSet = @"SBQueueSet";
|
||||
[[NSUserDefaults standardUserDefaults] setValue:[[self.options objectForKey:SBQueueSet] presetName] forKey:SBQueueSet];
|
||||
}
|
||||
|
||||
- (NSURL *)queueURL {
|
||||
- (nullable NSURL *)queueURL {
|
||||
NSURL *appSupportURL = nil;
|
||||
NSArray *allPaths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory,
|
||||
NSUserDomainMask,
|
||||
YES);
|
||||
if ([allPaths count]) {
|
||||
if (allPaths.count) {
|
||||
appSupportURL = [NSURL fileURLWithPath:[[[allPaths lastObject] stringByAppendingPathComponent:@"Subler"]
|
||||
stringByAppendingPathComponent:@"queue.sbqueue"] isDirectory:YES];
|
||||
return appSupportURL;
|
||||
|
||||
Reference in new issue
Block a user