Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kahan committed Jul 9, 2020
1 parent bfa70cc commit d001454
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ export function translateToEndpointExceptions(
const entrySet = new Set();
const entriesFiltered: TranslatedExceptionListItem[] = [];
if (schemaVersion === 'v1') {
exc.data.forEach((item) => {
const translatedItem = translateItem(schemaVersion, item);
const itemHash = createHash('sha256').update(JSON.stringify(translatedItem)).digest('hex');
if (!entrySet.has(itemHash)) {
exc.data.forEach((entry) => {
const translatedItem = translateItem(schemaVersion, entry);
const entryHash = createHash('sha256').update(JSON.stringify(translatedItem)).digest('hex');
if (!entrySet.has(entryHash)) {
entriesFiltered.push(translatedItem);
entrySet.add(itemHash);
entrySet.add(entryHash);
}
});
return entriesFiltered;
Expand Down

0 comments on commit d001454

Please sign in to comment.