mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
refactor: remove promise on checkModule (#13318)
* refactor: remove promise on checkModule * refactor: use forEach instead of map for checkModule
This commit is contained in:
@@ -39,7 +39,7 @@ const check = async ({cwd, packages}) => {
|
||||
});
|
||||
};
|
||||
|
||||
await Promise.all(dependencies.map(checkModule));
|
||||
dependencies.forEach(checkModule);
|
||||
|
||||
if (invalidDependencies.length) {
|
||||
throw Error(
|
||||
|
||||
Reference in New Issue
Block a user