Skip to content

Commit

Permalink
Fix build warning in String(data:) usage for Xcode 15.1 SDK (#337)
Browse files Browse the repository at this point in the history
- Match SDK version with CI and lowest target for compatibility
  • Loading branch information
aokj4ck authored Oct 28, 2024
1 parent c3e7108 commit 195d732
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ public class FeedbackManager {
root["results"] = searchResults
root["multiStepSearch"] = !isReproducible

let searchResultsJSON = (try? JSONSerialization.data(withJSONObject: root, options: [])).flatMap { String(
decoding: $0, as: UTF8.self
) }
let searchResultsJSON = (try? JSONSerialization.data(withJSONObject: root, options: [])).flatMap {
String(data: $0, encoding: .utf8)
}

return searchResultsJSON
}

Expand Down

0 comments on commit 195d732

Please sign in to comment.