mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 19:43:09 +00:00
Reorder lookup to avoid building name map when not needed.
This commit is contained in:
parent
c001021f3a
commit
f9d5081962
1 changed files with 2 additions and 2 deletions
|
@ -24,10 +24,10 @@ struct UpgradeCommand: CommandProtocol {
|
|||
let appIds: [UInt64]
|
||||
|
||||
appIds = apps.flatMap {
|
||||
if let appId = softwareMap.appIdWithProductName($0) {
|
||||
if let appId = UInt64($0) {
|
||||
return appId
|
||||
}
|
||||
if let appId = UInt64($0) {
|
||||
if let appId = softwareMap.appIdWithProductName($0) {
|
||||
return appId
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue