mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Null warning
This commit is contained in:
1 parent
271d504f6d
commit
dc1151a5ff
1 file changed
+3
-1
@@ -155,8 +155,10 @@ static NSString * const UPDATED_VERSION = @"2.0";
|
||||
|
||||
// Copy our appcast over to the server directory
|
||||
NSURL *appcastDestinationURL = [[serverDirectoryURL URLByAppendingPathComponent:appcastName] URLByAppendingPathExtension:appcastExtension];
|
||||
NSURL *appcastPath = [mainBundle URLForResource:appcastName withExtension:appcastExtension];
|
||||
assert(appcastPath);
|
||||
NSError *copyAppcastError = nil;
|
||||
if (![fileManager copyItemAtURL:[mainBundle URLForResource:appcastName withExtension:appcastExtension] toURL:appcastDestinationURL error:©AppcastError]) {
|
||||
if (![fileManager copyItemAtURL:appcastPath toURL:appcastDestinationURL error:©AppcastError]) {
|
||||
NSLog(@"Failed to copy appcast into cache directory with error %@", copyAppcastError);
|
||||
assert(NO);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user