refactor: remove promise on checkModule (#13318)

* refactor: remove promise on checkModule
* refactor: use forEach instead of map for checkModule
This commit is contained in:
Clark Du
2018-08-03 13:25:31 -07:00
committed by Brian Vaughn
parent 61122347dd
commit f8456b2ecb
@@ -39,7 +39,7 @@ const check = async ({cwd, packages}) => {
});
};
await Promise.all(dependencies.map(checkModule));
dependencies.forEach(checkModule);
if (invalidDependencies.length) {
throw Error(