Skip to content

Commit

Permalink
change filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
shiva-venkatesh26 committed Jun 17, 2024
1 parent 306cc9f commit f7fd56b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func GetCountrySubdivisions(code string) CountrySubdivisions {
fmt.Println("Error getting current file directory")
return CountrySubdivisions{}
}
subDivJsonData, err := os.ReadFile(filepath.Join(filepath.Dir(currentFileName), code+".json"))
subDivJsonData, err := os.ReadFile(filepath.Join("./", code+".json"))
if err != nil {
fmt.Println("Error reading JSON file:", err)
return CountrySubdivisions{}
Expand Down

0 comments on commit f7fd56b

Please sign in to comment.