mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 13:00:23 +00:00
🔇 Remove redundant error statements
This commit is contained in:
parent
62a09bdbb7
commit
892ad7e199
5 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue