Skip to content

Commit 79800fa

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix lint issues in CatalystInstanceImpl.java (facebook#55372)
Summary: Fixed two lint warnings in CatalystInstanceImpl.java: - NotInvokedPrivateMethod: Removed unused native method `unregisterFromInspector()` - DeadVariable: Removed unused variable `wasIdle` while keeping the side effect of `mPendingJSCalls.getAndSet(0)` changelog: [internal] internal Reviewed By: javache Differential Revision: D91795470
1 parent 919b5ed commit 79800fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public void destroy() {
344344
if (mFabricUIManager != null) {
345345
mFabricUIManager.invalidate();
346346
}
347-
boolean wasIdle = (mPendingJSCalls.getAndSet(0) == 0);
347+
mPendingJSCalls.getAndSet(0);
348348

349349
getReactQueueConfiguration()
350350
.getJSQueueThread()

0 commit comments

Comments
 (0)