mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 13:00:23 +00:00
Move the function to where it's used
This commit is contained in:
parent
9c145ff146
commit
95f42de3d9
2 changed files with 5 additions and 5 deletions
|
@ -20,3 +20,8 @@ struct AccountCommand: CommandType {
|
|||
return .success(())
|
||||
}
|
||||
}
|
||||
|
||||
func primaryAccount() -> ISStoreAccount {
|
||||
let accountController = CKAccountStore.sharedAccountStore()
|
||||
return accountController.primaryAccount
|
||||
}
|
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in a new issue