diff --git a/src/util/fs.js b/src/util/fs.js index d8ff96fba1..9d6fd52bfe 100644 --- a/src/util/fs.js +++ b/src/util/fs.js @@ -174,7 +174,9 @@ async function buildActionsForCopy( destStat = await lstat(dest); } catch (e) { // proceed if destination doesn't exist, otherwise error - if (e.code !== 'ENOENT') throw e; + if (e.code !== 'ENOENT') { + throw e; + } } // if destination exists