summaryrefslogtreecommitdiff
path: root/DomainInspectionService.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-08 15:32:26 -0500
committerChristian Cleberg <[email protected]>2026-08-08 15:32:26 -0500
commit49a999885fd23e59555429dbc111e3a3d87fd164 (patch)
tree7818bbb9f81db35b4de140bb667d02e0dfdca2ab /DomainInspectionService.swift
parentfe83ff502ffcaa59c7a22471c634d565972e7644 (diff)
downloaddomain-dig-sonarcloud-cleanup.tar.gz
domain-dig-sonarcloud-cleanup.tar.bz2
domain-dig-sonarcloud-cleanup.zip
Add CodingKeys for external JSON decodablessonarcloud-cleanup
Diffstat (limited to 'DomainInspectionService.swift')
-rw-r--r--DomainInspectionService.swift4
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