Skip to content

Commit

Permalink
Fix problems when on latest Node.js 12
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 24, 2020
1 parent 11b236d commit d7fab4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion index.js
Expand Up @@ -26,7 +26,6 @@ const cpFileAsync = async (source, destination, options, progressEmitter) => {

let shouldUpdateStats = false;
try {
await pEvent(writeStream, 'open');
const writePromise = pEvent(writeStream, 'close');
readStream.pipe(writeStream);
await writePromise;
Expand Down

0 comments on commit d7fab4c

Please sign in to comment.