🔇 Remove redundant error statements

This commit is contained in:
Ben Chatelain 2022-10-03 19:46:06 -06:00
parent 62a09bdbb7
commit 892ad7e199
5 changed files with 0 additions and 5 deletions

View file

@ -39,7 +39,6 @@ public struct HomeCommand: CommandProtocol {
public func run(_ options: HomeOptions) -> Result<Void, MASError> {
do {
guard let result = try storeSearch.lookup(app: options.appId).wait() else {
print("No results found")
return .failure(.noSearchResultsFound)
}

View file

@ -30,7 +30,6 @@ public struct InfoCommand: CommandProtocol {
public func run(_ options: InfoOptions) -> Result<Void, MASError> {
do {
guard let result = try storeSearch.lookup(app: options.appId).wait() else {
print("No results found")
return .failure(.noSearchResultsFound)
}

View file

@ -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)
}

View file

@ -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)
}

View file

@ -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)
}