Commit f412887
Fix SelfComparison lint error in NativeModuleRegistry.kt (#55444)
Summary:
Pull Request resolved: #55444
Fixed SelfComparison lint error by extracting the compared values into separate local variables, making it clearer to the linter that we're comparing two different instances.
The original code was comparing `this.reactApplicationContext` with `newRegister.reactApplicationContext`, but the linter incorrectly flagged it as a self-comparison due to the same property name.
changelog: [internal] internal
Reviewed By: cortinico
Differential Revision: D91797839
fbshipit-source-id: 5f475490c7e167eff46108e3a9c48b9072853f501 parent f006240 commit f412887
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.kt
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
0 commit comments