Skip to content

Commit cdf6f5e

Browse files
committed
fixup: remove last then
1 parent 341098f commit cdf6f5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ function makeCopier(copyConfig, assetManager, { compact } = {}) {
6060
* @param {string} target
6161
* @returns {Promise<string>}
6262
*/
63-
function determineTargetDir(source, target) {
64-
return stat(source).
65-
then(results => results.isDirectory() ? target : path.dirname(target));
63+
async function determineTargetDir(source, target) {
64+
let results = await stat(source);
65+
return results.isDirectory() ? target : path.dirname(target);
6666
}
6767

6868
/**

0 commit comments

Comments
 (0)