mirror of
https://github.com/mas-cli/mas
synced 2024-11-28 14:30:29 +00:00
Merge pull request #548 from rgoldberg/546-lint
Fix breaking lint issue in MasStoreSearch.swift.
This commit is contained in:
commit
622a154fb9
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ class MasStoreSearch: StoreSearch {
|
||||||
firstly {
|
firstly {
|
||||||
networkManager.loadData(from: pageUrl)
|
networkManager.loadData(from: pageUrl)
|
||||||
}.map { data in
|
}.map { data in
|
||||||
let html = String(decoding: data, as: UTF8.self)
|
guard let html = String(data: data, encoding: .utf8),
|
||||||
guard let capture = MasStoreSearch.appVersionExpression.firstMatch(in: html)?.captures[0],
|
let capture = MasStoreSearch.appVersionExpression.firstMatch(in: html)?.captures[0],
|
||||||
let version = Version(tolerant: capture)
|
let version = Version(tolerant: capture)
|
||||||
else {
|
else {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue