Previous code was throw IllegalStateException(), so keep the existing error, even if it should never happen, being compliant with UseCheckOrError detekt rule.

This commit is contained in:
Benoit Marty 2023-07-27 12:59:16 +02:00
parent e7c330be95
commit 2da6ceeb5f

View file

@ -236,7 +236,7 @@ private fun MapView.lifecycleObserver(previousState: MutableState<Lifecycle.Even
Lifecycle.Event.ON_DESTROY -> {
//handled in onDispose
}
Lifecycle.Event.ON_ANY -> Unit
Lifecycle.Event.ON_ANY -> error("ON_ANY should never be used")
}
previousState.value = event
}