Skip to content

Commit

Permalink
Fixed unneeded call to toLocalLowerCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Jackson committed Nov 4, 2024
1 parent ac2482c commit 6223c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/scripts/update_defendants.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function updateDefendants() {
suffix: d.suffix,
exact: true,
}, null);
const match = matches.filter((itm) => (`${itm.defendant}.${itm.sex}.${itm.race}`.toLocaleLowerCase()) === d.long_id.toLocaleLowerCase());
const match = matches.filter((itm) => (`${itm.defendant}.${itm.sex}.${itm.race}`.toLowerCase()) === d.long_id.toLowerCase());
let updateObject;
let nCases = 0;
if (match.length > 0) nCases = match[0].cases.length;
Expand Down

0 comments on commit 6223c88

Please sign in to comment.