Skip to content

Commit

Permalink
chore: simplify new Set()
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed May 29, 2022
1 parent 675637e commit 0d52a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-language-server/src/project.ts
Expand Up @@ -190,7 +190,7 @@ export async function createProject(
getProjectVersion: () => projectVersion.toString(),
getTypeRootsVersion: () => typeRootVersion,
getScriptFileNames: () => {
const fileNames = new Set([...parsedCommandLine.fileNames]);
const fileNames = new Set(parsedCommandLine.fileNames);
for (const script of scripts.values()) {
fileNames.add(script.fileName);
}
Expand Down

0 comments on commit 0d52a84

Please sign in to comment.