Commit da1ef0d
Simplify hasNativeModule boolean ternary (#55490)
Summary:
Pull Request resolved: #55490
Changelog: [Internal]
Simplified a redundant boolean ternary expression in CatalystInstanceImpl.hasNativeModule().
The expression `condition ? true : fallback` is equivalent to `condition || fallback`. This change improves code readability without changing behavior.
Reviewed By: cortinico
Differential Revision: D92836584
fbshipit-source-id: 2946c779e73c06554e04c1df75ddccc5f9d048ff1 parent cb24531 commit da1ef0d
1 file changed
Lines changed: 2 additions & 3 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
420 | | - | |
421 | | - | |
| 419 | + | |
| 420 | + | |
422 | 421 | | |
423 | 422 | | |
424 | 423 | | |
| |||
0 commit comments