Skip to content

Commit

Permalink
Refactor FXIOS-10205 [Swiftlint] Resolve 1 implicitly_unwrapped_optio…
Browse files Browse the repository at this point in the history
…nal violations in OpenSearchParser (#23811)

Resolve warnings in OpenSearchParser

Co-authored-by: Marceau Tonelli <[email protected]>
  • Loading branch information
tonell-m and tonelli-m authored Dec 17, 2024
1 parent 2c30856 commit b3e04b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class OpenSearchParser {
return nil
}

var searchTemplate: String!
var searchTemplate: String?
var suggestTemplate: String?
for urlIndexer in urlIndexers {
let type = urlIndexer.attributes["type"]
Expand Down Expand Up @@ -101,7 +101,7 @@ class OpenSearchParser {
}
}

if searchTemplate == nil {
guard let searchTemplate else {
return nil
}

Expand Down

0 comments on commit b3e04b8

Please sign in to comment.