mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 11:33:13 +00:00
🔍 Search for compatible iPad and iPhone apps
This commit is contained in:
parent
763392cb23
commit
436c3a250d
1 changed files with 2 additions and 0 deletions
|
@ -72,6 +72,8 @@ class MasStoreSearch: StoreSearch {
|
||||||
loadSearchResults(url)
|
loadSearchResults(url)
|
||||||
}.then { results -> Guarantee<SearchResult?> in
|
}.then { results -> Guarantee<SearchResult?> in
|
||||||
guard let result = results.first else {
|
guard let result = results.first else {
|
||||||
|
return try JSONDecoder().decode(SearchResultList.self, from: data).results
|
||||||
|
} catch {
|
||||||
return .value(nil)
|
return .value(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue