mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 13:00:23 +00:00
Fix breaking lint issue in MasStoreSearch.swift.
Resolve #546 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
81aa71bc76
commit
fa7bdea029
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ class MasStoreSearch: StoreSearch {
|
|||
firstly {
|
||||
networkManager.loadData(from: pageUrl)
|
||||
}.map { data in
|
||||
let html = String(decoding: data, as: UTF8.self)
|
||||
guard let capture = MasStoreSearch.appVersionExpression.firstMatch(in: html)?.captures[0],
|
||||
guard let html = String(data: data, encoding: .utf8),
|
||||
let capture = MasStoreSearch.appVersionExpression.firstMatch(in: html)?.captures[0],
|
||||
let version = Version(tolerant: capture)
|
||||
else {
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue