diff --git a/lib/index.js b/lib/index.js index df1cb287..43757bbc 100644 --- a/lib/index.js +++ b/lib/index.js @@ -376,7 +376,7 @@ export class Baker extends EventEmitter { * An array of file paths representing embed files. * @type {string[]} */ - const embedFiles = await (new Promise((resolve, reject) => { + const embedFiles = await new Promise((resolve, reject) => { readdir(embedFilePattern, (err, files) => { //handling error if (err) { @@ -385,7 +385,7 @@ export class Baker extends EventEmitter { resolve(files); }); - })); + }); if (!embedFiles.length) return;