Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Commit

Permalink
Don’t add duplicate entries to map
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Mar 3, 2017
1 parent fc040dd commit 1edddca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build-data.js
Expand Up @@ -69,6 +69,7 @@ const invertedEqualsEnv = Object.keys(envs)
// that newer ones have
if (!isNaN(equalsVersion) && equalsVersion <= version) {
if (!a[equals]) a[equals] = [];
if (a[equals].indexOf(b) >= 0) return;
a[equals].push(b);
}
});
Expand Down

0 comments on commit 1edddca

Please sign in to comment.