Ez fix lint warn (#38595)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38595

 Ez fix lint warn

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D47565845

fbshipit-source-id: 6337831031fd4060bcc9168e8ae0be2655718241
This commit is contained in:
David Vacca
2023-07-30 11:54:13 -07:00
committed by Facebook GitHub Bot
parent 2ef711cf45
commit 17ebe6cd69
2 changed files with 8 additions and 8 deletions
@@ -82,13 +82,11 @@ public abstract class ReactPackageTurboModuleManagerDelegate extends TurboModule
if (shouldSupportLegacyPackages() && reactPackage instanceof ReactInstancePackage) {
// TODO(T145105887): Output error that ReactPackage was used
continue;
}
if (shouldSupportLegacyPackages()) {
// TODO(T145105887): Output warnings that ReactPackage was used
final List<NativeModule> nativeModules =
reactPackage.createNativeModules(reactApplicationContext);
@@ -151,11 +149,11 @@ public abstract class ReactPackageTurboModuleManagerDelegate extends TurboModule
}
} catch (IllegalArgumentException ex) {
/**
* TurboReactPackages can throw an IllegalArgumentException when a module isn't found. If
* this happens, it's safe to ignore the exception because a later TurboReactPackage could
* provide the module.
*/
/*
TurboReactPackages can throw an IllegalArgumentException when a module isn't found. If
this happens, it's safe to ignore the exception because a later TurboReactPackage could
provide the module.
*/
}
}
@@ -213,7 +211,7 @@ public abstract class ReactPackageTurboModuleManagerDelegate extends TurboModule
}
} catch (IllegalArgumentException ex) {
/**
/*
* TurboReactPackages can throw an IllegalArgumentException when a module isn't found. If
* this happens, it's safe to ignore the exception because a later TurboReactPackage could
* provide the module.
@@ -119,6 +119,8 @@ public class TurboModuleManager implements JSIModule, TurboModuleRegistry {
&& ReactFeatureFlags.unstable_useTurboModuleInteropForAllTurboModules;
}
@Override
@NonNull
public List<String> getEagerInitModuleNames() {
return mEagerInitModuleNames;
}