Fix some warnings.

This commit is contained in:
Damiano Galassi committed 2016-02-16 19:44:50 +01:00
1 parent 2077febc70
commit 60758e225b
13 files changed
+25 -18

No files matched your search

+2 -2
View File
@@ -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;