diff options
| author | Christian Cleberg <[email protected]> | 2026-08-08 15:32:26 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-08-08 15:32:26 -0500 |
| commit | 49a999885fd23e59555429dbc111e3a3d87fd164 (patch) | |
| tree | 7818bbb9f81db35b4de140bb667d02e0dfdca2ab /DomainInspectionService.swift | |
| parent | fe83ff502ffcaa59c7a22471c634d565972e7644 (diff) | |
| download | domain-dig-49a999885fd23e59555429dbc111e3a3d87fd164.tar.gz domain-dig-49a999885fd23e59555429dbc111e3a3d87fd164.tar.bz2 domain-dig-49a999885fd23e59555429dbc111e3a3d87fd164.zip | |
Add CodingKeys for external JSON decodablessonarcloud-cleanup
Diffstat (limited to 'DomainInspectionService.swift')
| -rw-r--r-- | DomainInspectionService.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DomainInspectionService.swift b/DomainInspectionService.swift index 3ebfe09..730d172 100644 --- a/DomainInspectionService.swift +++ b/DomainInspectionService.swift @@ -609,10 +609,10 @@ struct DomainInspectionService { private func confidenceForGeolocation(result: IPGeolocation?) -> ConfidenceLevel { guard let result else { return .low } - if result.city != nil && result.country_name != nil && result.latitude != nil && result.longitude != nil { + if result.city != nil && result.countryName != nil && result.latitude != nil && result.longitude != nil { return .high } - if result.country_name != nil || result.org != nil { + if result.countryName != nil || result.org != nil { return .medium } return .low |
