@dra2020/district-analytics 7.1.2 → 7.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -1
- package/dist/cli.js.map +1 -1
- package/dist/district-analytics.js +6 -1
- package/dist/district-analytics.js.map +1 -1
- package/package.json +1 -1
|
@@ -1089,7 +1089,12 @@ function doFindCountiesSplitUnexpectedly(s, bLog = false) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
// ... and convert the FIPS codes to county names.
|
|
1091
1091
|
for (let fips of countiesSplitUnexpectedlyFIPS) {
|
|
1092
|
-
|
|
1092
|
+
const name = s.counties.nameFromFIPS(fips);
|
|
1093
|
+
// 07-06-20 - Guard in case the FIPS code isn't in the county name lookup
|
|
1094
|
+
if (name)
|
|
1095
|
+
countiesSplitUnexpectedly.push(name);
|
|
1096
|
+
else
|
|
1097
|
+
console.log("County is not in the FIPS-to-name lookup table: ", fips);
|
|
1093
1098
|
}
|
|
1094
1099
|
countiesSplitUnexpectedly = countiesSplitUnexpectedly.sort();
|
|
1095
1100
|
test['score'] = U.trim(unexpectedAffected);
|