Skip to content

Commit

Permalink
update: changed implementation of zipcode related methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rzp-Piyush committed Nov 15, 2024
1 parent 1b9259d commit 3f3d25a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ func GetCountrySubdivisions(code string) CountrySubdivisions {

// initializeZipCodeMap builds the zip code maps for the given CountrySubdivisions.
func initializeZipCodeMap(subdivisions *CountrySubdivisions) {
// Ensure zip code maps are initialized only once.
if subdivisions.ZipCodes.IsInitialized {
return
}
var zipcodeToStates = make(map[string][]State)
var zipcodeToCities = make(map[string][]City)

Expand Down

0 comments on commit 3f3d25a

Please sign in to comment.