Remove log info when TurboModule cannot be found

Summary: Changelog: [Internal]

Reviewed By: rubennorte

Differential Revision: D28749474

fbshipit-source-id: 28079904023f23e88b4f5bca45d7e600171e929e
This commit is contained in:
Paige Sun
2021-05-27 10:42:34 -07:00
committed by Facebook GitHub Bot
parent fff0107e5a
commit 8a5ee96354
@@ -26,15 +26,6 @@ function requireModule<T: TurboModule>(name: string): ?T {
if (turboModuleProxy != null) {
const module: ?T = turboModuleProxy(name);
if (module == null) {
// Common fixes: Verify the TurboModule is registered in the native binary, and adopts the code generated type-safe Spec base class.
// Safe to ignore when caused by importing legacy modules that are unused.
console.info(
'Unable to get TurboModule for ' +
name +
'. Safe to ignore if module works.',
);
}
return module;
}