Skip to content

Commit

Permalink
Removed useless async decleration
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Mar 21, 2017
1 parent 9c280f8 commit b166395
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/get-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b166395

Please sign in to comment.