refactor: fix typo in var name

This commit is contained in:
2026-02-09 19:35:28 +00:00
parent a306357081
commit 861412f5a1
+3 -3
View File
@@ -24,12 +24,12 @@ func fetchLive() (TimezoneMap, error) {
return nil, fmt.Errorf("failed to fetch country data") return nil, fmt.Errorf("failed to fetch country data")
} }
var apidData []countryApiReponse var apiData []countryApiReponse
if err := json.NewDecoder(resp.Body).Decode(&apidData); err != nil { if err := json.NewDecoder(resp.Body).Decode(&apiData); err != nil {
return nil, fmt.Errorf("failed to fetch ") return nil, fmt.Errorf("failed to fetch ")
} }
return buildTzMap(apidData), nil return buildTzMap(apiData), nil
} }
func Fetch() (TimezoneMap, error) { func Fetch() (TimezoneMap, error) {