Skip to content

Commit

Permalink
review nit
Browse files Browse the repository at this point in the history
  • Loading branch information
cd1m0 committed Feb 10, 2022
1 parent 0555a2b commit eda0998
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/compile/inference/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,7 @@ export function findAllFiles(
resolvers: ImportResolver[]
): void {
// Queue of source unit names to process
const queue: string[] = [];

for (const fileName of files.keys()) {
queue.push(fileName);
}

const queue: string[] = [...files.keys()];
const visited = new Set<string>();

while (queue.length > 0) {
Expand Down

0 comments on commit eda0998

Please sign in to comment.