mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Clenaup ReactPackageHelper (#41100)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41100 Fix lint warnings bypass-github-export-checks changelog: [internal] internal Reviewed By: arushikesarwani94 Differential Revision: D50338306 fbshipit-source-id: 07623821bb3a684bf70575af80530c1616fd949b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
615057c239
commit
0f8227df63
+2
-8
@@ -7,7 +7,6 @@
|
||||
|
||||
package com.facebook.react;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.react.bridge.ModuleHolder;
|
||||
import com.facebook.react.bridge.NativeModule;
|
||||
@@ -42,11 +41,8 @@ class ReactPackageHelper {
|
||||
} else {
|
||||
nativeModules = reactPackage.createNativeModules(reactApplicationContext);
|
||||
}
|
||||
return new Iterable<ModuleHolder>() {
|
||||
@NonNull
|
||||
@Override
|
||||
public Iterator<ModuleHolder> iterator() {
|
||||
return new Iterator<ModuleHolder>() {
|
||||
return () ->
|
||||
new Iterator<ModuleHolder>() {
|
||||
int position = 0;
|
||||
|
||||
@Override
|
||||
@@ -64,7 +60,5 @@ class ReactPackageHelper {
|
||||
throw new UnsupportedOperationException("Cannot remove methods ");
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user