Skip to content

Commit

Permalink
Fix breaking lint issue in MasStoreSearch.swift.
Browse files Browse the repository at this point in the history
Resolve mas-cli#546

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
  • Loading branch information
rgoldberg committed Oct 5, 2024
1 parent 7e4ad91 commit f543024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/MasKit/Controllers/MasStoreSearch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ class MasStoreSearch: StoreSearch {
firstly {
networkManager.loadData(from: pageUrl)
}.map { data in
let html = String(data: data, encoding: .utf8)
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
Expand Down

0 comments on commit f543024

Please sign in to comment.