Skip to content

Commit

Permalink
Refactor code to fix logic error in GetClosedSchool function
Browse files Browse the repository at this point in the history
  • Loading branch information
a3510377 committed Oct 30, 2024
1 parent 5ac1cb3 commit 06e8129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func GetClosedSchool() (*WorkSchoolCloseMap, error) {
if v == "" {
continue
}
if _, ok := noClassMap[v]; !ok {
return
if _, ok := noClassMap[v]; ok {
continue
}

details = append(details, countyCityPrefixRegex.ReplaceAllString(v, ""))
Expand Down

0 comments on commit 06e8129

Please sign in to comment.