From 892ad7e199da88b51f7ecf8c4ab6a7087a645e3d Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Mon, 3 Oct 2022 19:46:06 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=87=20Remove=20redundant=20error=20sta?= =?UTF-8?q?tements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/MasKit/Commands/Home.swift | 1 - Sources/MasKit/Commands/Info.swift | 1 - Sources/MasKit/Commands/Open.swift | 1 - Sources/MasKit/Commands/Search.swift | 1 - Sources/MasKit/Commands/Vendor.swift | 1 - 5 files changed, 5 deletions(-) diff --git a/Sources/MasKit/Commands/Home.swift b/Sources/MasKit/Commands/Home.swift index db7b1c3..f3f6bbb 100644 --- a/Sources/MasKit/Commands/Home.swift +++ b/Sources/MasKit/Commands/Home.swift @@ -39,7 +39,6 @@ public struct HomeCommand: CommandProtocol { public func run(_ options: HomeOptions) -> Result { do { guard let result = try storeSearch.lookup(app: options.appId).wait() else { - print("No results found") return .failure(.noSearchResultsFound) } diff --git a/Sources/MasKit/Commands/Info.swift b/Sources/MasKit/Commands/Info.swift index dc3ad35..82974dc 100644 --- a/Sources/MasKit/Commands/Info.swift +++ b/Sources/MasKit/Commands/Info.swift @@ -30,7 +30,6 @@ public struct InfoCommand: CommandProtocol { public func run(_ options: InfoOptions) -> Result { do { guard let result = try storeSearch.lookup(app: options.appId).wait() else { - print("No results found") return .failure(.noSearchResultsFound) } diff --git a/Sources/MasKit/Commands/Open.swift b/Sources/MasKit/Commands/Open.swift index 0e31857..85e04db 100644 --- a/Sources/MasKit/Commands/Open.swift +++ b/Sources/MasKit/Commands/Open.swift @@ -56,7 +56,6 @@ public struct OpenCommand: CommandProtocol { guard let result = try storeSearch.lookup(app: appId).wait() else { - print("No results found") return .failure(.noSearchResultsFound) } diff --git a/Sources/MasKit/Commands/Search.swift b/Sources/MasKit/Commands/Search.swift index 9800edd..cc0f2c7 100644 --- a/Sources/MasKit/Commands/Search.swift +++ b/Sources/MasKit/Commands/Search.swift @@ -32,7 +32,6 @@ public struct SearchCommand: CommandProtocol { do { let results = try storeSearch.search(for: options.appName).wait() if results.isEmpty { - print("No results found") return .failure(.noSearchResultsFound) } diff --git a/Sources/MasKit/Commands/Vendor.swift b/Sources/MasKit/Commands/Vendor.swift index 07b9c35..0fe8401 100644 --- a/Sources/MasKit/Commands/Vendor.swift +++ b/Sources/MasKit/Commands/Vendor.swift @@ -40,7 +40,6 @@ public struct VendorCommand: CommandProtocol { do { guard let result = try storeSearch.lookup(app: options.appId).wait() else { - print("No results found") return .failure(.noSearchResultsFound) }