Skip to content

Commit

Permalink
Simplify iteration over a Set.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Nov 10, 2020
1 parent c6317b8 commit bd17301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/node-core-library/src/FileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ export class FileSystem {
const sourceStream: fs.ReadStream = fsx.createReadStream(options.sourcePath);
const uniqueDestinationPaths: Set<string> = new Set(options.destinationPaths);
const pipePromises: Promise<void>[] = [];
for (const destinationPath of uniqueDestinationPaths.values()) {
for (const destinationPath of uniqueDestinationPaths) {
pipePromises.push(createPipePromise(sourceStream, destinationPath));
}

Expand Down

0 comments on commit bd17301

Please sign in to comment.