Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Cannon <brett@python.org>
  • Loading branch information
luabud and brettcannon authored Nov 17, 2022
1 parent 7dfd257 commit 9ff03e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ async function addExtensionPackDependencies() {
packageJson.extensionPack = ['ms-python.vscode-pylance', 'ms-python.isort'].concat(
packageJson.extensionPack ? packageJson.extensionPack : [],
);
// Remove potential duplicates.
packageJson.extensionPack = packageJson.extensionPack.filter((item, index) => packageJson.extensionPack.indexOf(item) === index);
await fsExtra.writeFile('package.json', JSON.stringify(packageJson, null, 4), 'utf-8');
}

Expand Down

0 comments on commit 9ff03e4

Please sign in to comment.