From 87aaba555db65cc3353a059c78502f17c88eeb49 Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:39:27 -0400 Subject: [PATCH] Remove unnecessary variable type. Partial #592 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> --- Sources/mas/Commands/Upgrade.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/mas/Commands/Upgrade.swift b/Sources/mas/Commands/Upgrade.swift index 41054d2..4b3740b 100644 --- a/Sources/mas/Commands/Upgrade.swift +++ b/Sources/mas/Commands/Upgrade.swift @@ -55,7 +55,7 @@ extension Mas { appLibrary: AppLibrary, storeSearch: StoreSearch ) throws -> [(SoftwareProduct, SearchResult)] { - let apps: [SoftwareProduct] = + let apps = appIDs.isEmpty ? appLibrary.installedApps : appIDs.compactMap { appID in