Skip to content

Commit

Permalink
fix: testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
rzp-Piyush committed Nov 19, 2024
1 parent 2db1e83 commit 3b8c120
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func GetCitiesFromZipCode(zipCode string, countryCode string) []country_subdivis
}
func IsValidPinCode(zipCode string, countryCode string) bool {
pinCodeData := GetCountryZipCodeDetails(countryCode)
return len(pinCodeData.pinCodeToDetails[zipCode].StateCodes) > 0
return pinCodeData.pinCodeToDetails[zipCode] != nil
}
func GetPinCodesFromCity(city string, countryCode string) []string {
pinCodeData := GetCountryZipCodeDetails(countryCode)
Expand Down

0 comments on commit 3b8c120

Please sign in to comment.