Move the function to where it's used

This commit is contained in:
Andrew Naylor 2015-08-22 02:22:06 +08:00
parent 9c145ff146
commit 95f42de3d9
2 changed files with 5 additions and 5 deletions

View file

@ -20,3 +20,8 @@ struct AccountCommand: CommandType {
return .success(())
}
}
func primaryAccount() -> ISStoreAccount {
let accountController = CKAccountStore.sharedAccountStore()
return accountController.primaryAccount
}

View file

@ -10,11 +10,6 @@ import Foundation
var client = ISStoreClient(storeClientType: 0)
func primaryAccount() -> ISStoreAccount {
let accountController = CKAccountStore.sharedAccountStore()
return accountController.primaryAccount
}
var downloadQueue = CKDownloadQueue.sharedDownloadQueue()
downloadQueue.addObserver(DownloadQueueObserver())