Skip to content

Commit

Permalink
Clenaup ReactPackageHelper (#41100)
Browse files Browse the repository at this point in the history
Summary:

Fix lint warnings

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: arushikesarwani94

Differential Revision: D50338306
  • Loading branch information
mdvacca authored and facebook-github-bot committed Oct 23, 2023
1 parent 22ad715 commit 536b6ab
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -42,11 +41,8 @@ static Iterable<ModuleHolder> getNativeModuleIterator(
} 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
Expand All @@ -64,7 +60,5 @@ public void remove() {
throw new UnsupportedOperationException("Cannot remove methods ");
}
};
}
};
}
}

0 comments on commit 536b6ab

Please sign in to comment.