Fix broken build due to a land time race

Summary:
With D55574528 and D55623682 having landed concurrently, and the latter enabling warnings-as-errors for Kotlin files vs the former having one such warning, this caused a build breakage.

This diff fixes  it.

Reviewed By: andrewdacenko

Differential Revision: D55636176

fbshipit-source-id: 781b8cf40a4e9aa8a3da3005d26dca975f146c09
This commit is contained in:
Ruslan Shestopalyuk
2024-04-02 06:40:01 -07:00
committed by Facebook GitHub Bot
parent 2f1643dc0c
commit c32a053722
@@ -64,7 +64,7 @@ internal class LogBoxDialogSurfaceDelegate(private val devSupportManager: DevSup
if (!isShowing) {
return
}
(reactRootView?.parent as ViewGroup)?.removeView(reactRootView)
(reactRootView?.parent as ViewGroup?)?.removeView(reactRootView)
dialog?.dismiss()
dialog = null
}