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:
Ross Goldberg 2024-10-05 18:08:42 -04:00
parent 81aa71bc76
commit fa7bdea029
No known key found for this signature in database

View file

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