mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
Use a loop instead of Map for printing
This commit is contained in:
parent
4ebd0ebb17
commit
fd658835e9
1 changed files with 2 additions and 3 deletions
|
@ -15,10 +15,9 @@ struct ListInstalledCommand: CommandType {
|
|||
case .Arguments:
|
||||
let softwareMap = CKSoftwareMap.sharedSoftwareMap()
|
||||
let products = softwareMap.allProducts() as! [CKSoftwareProduct]
|
||||
products.map({ product -> Bool in
|
||||
for product in products {
|
||||
println("\(product.itemIdentifier) \(product.appName)")
|
||||
return true
|
||||
})
|
||||
}
|
||||
|
||||
default:
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue