Avoid doing multiple unnecessary traversals when hot patching modules

Reviewed By: martinbigio

Differential Revision: D6853969

fbshipit-source-id: 982ca135a4113c985bbd7d8e8631601e16844a86
This commit is contained in:
Rafael Oleza 2018-02-05 21:38:49 -08:00 committed by Facebook Github Bot
parent 2596f0f362
commit e329f00dc9
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ if (__DEV__) {
parents.push(...inverseDependencies[notAccepted[i]]);
}
return acceptAll(parents, inverseDependencies);
return parents.length == 0;
};
const accept = function(