From 06e812989e44f18abf7127fa5701ac2aae97455e Mon Sep 17 00:00:00 2001 From: a3510377 Date: Wed, 30 Oct 2024 12:57:41 +0000 Subject: [PATCH] Refactor code to fix logic error in GetClosedSchool function --- api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.go b/api.go index 5cf826b..16b7df3 100644 --- a/api.go +++ b/api.go @@ -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, ""))