mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
Remove unnecessary generics.
Partial #592 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
3d9ea972f9
commit
a100f3acd0
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ import StoreFoundation
|
|||
/// the promise is rejected with the first error, after all remaining downloads are attempted.
|
||||
func downloadAll(_ appIDs: [AppID], purchase: Bool = false) -> Promise<Void> {
|
||||
var firstError: Error?
|
||||
return appIDs.reduce(Guarantee<Void>.value(())) { previous, appID in
|
||||
return appIDs.reduce(Guarantee.value(())) { previous, appID in
|
||||
previous.then {
|
||||
downloadWithRetries(appID, purchase: purchase).recover { error in
|
||||
if firstError == nil {
|
||||
|
|
|
@ -14,7 +14,7 @@ extension ISStoreAccount: StoreAccount {
|
|||
static var primaryAccount: Promise<ISStoreAccount> {
|
||||
if #available(macOS 10.13, *) {
|
||||
return race(
|
||||
Promise<ISStoreAccount> { seal in
|
||||
Promise { seal in
|
||||
ISServiceProxy.genericShared().accountService.primaryAccount { storeAccount in
|
||||
seal.fulfill(storeAccount)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue