diff --git a/lib/get-files.js b/lib/get-files.js index e94e771..dfb8846 100644 --- a/lib/get-files.js +++ b/lib/get-files.js @@ -306,8 +306,7 @@ async function explode(paths, { accepts, debug }) { return path; }; - const many = async all => Promise.all(all.map(async file => list(file))); - + const many = all => Promise.all(all.map(file => list(file))); return flatten(await many(paths)).filter(v => v !== null); }