Skip to content

Commit

Permalink
Correct archive errors introduced by swiftformat changes (#295)
Browse files Browse the repository at this point in the history
### Description

- Fix errors when archiving MapboxSearch and MapboxSearchUI through `make ios`
- Also occurred when Demo app for Generic/Any iOS Device
  • Loading branch information
aokj4ck authored Aug 14, 2024
1 parent f1cba2a commit 2f76613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@ enum CoreSearchEngineStatics {

enum ISOLanguages {
static func contains(language: String) -> Bool {
var validLanguage: Bool = if #available(iOS 16, *) {
if #available(iOS 16, *) {
Locale.LanguageCode.isoLanguageCodes
.map(\.identifier)
.contains(language)
} else {
Locale.isoLanguageCodes
.contains(language)
}
return validLanguage
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extension Discover {

extension Discover.Result {
static func from(_ searchResult: SearchResult) -> Self {
var routablePointsArray: NonEmptyArray<RoutablePoint>? = if let routablePoints = searchResult.routablePoints,
let routablePointsArray: NonEmptyArray<RoutablePoint>? = if let routablePoints = searchResult.routablePoints,
let first = searchResult.routablePoints?.first
{
.init(first: first, others: Array(routablePoints.dropFirst()))
Expand Down

0 comments on commit 2f76613

Please sign in to comment.