Don’t add duplicate entries to map
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user