提交 4acc58d0 编写于 作者: D Daniel Imms

Use a Set over a Map

上级 ae21a792
......@@ -105,8 +105,8 @@ function getMissingMutatorsFromArray(
}
// Create a map to help
const otherMutatorExtensions = new Map<string, boolean>();
other.forEach(m => otherMutatorExtensions.set(m.extensionIdentifier, true));
const otherMutatorExtensions = new Set<string>();
other.forEach(m => otherMutatorExtensions.add(m.extensionIdentifier));
// Find entries removed from other
const result: IExtensionOwnedEnvironmentVariableMutator[] = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册