From b1663954fe935beb0244002625e05402f59bd20e Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Tue, 21 Mar 2017 11:06:31 +0100 Subject: [PATCH] Removed useless `async` decleration --- lib/get-files.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }