Fix crash due to incorrectly implemented assert

Test: manual
Change-Id: Ic0ff5614c2f6e20161842097b1975b162955c44d
This commit is contained in:
Jeff DeCew
2021-11-26 17:32:35 +00:00
parent 61a746733a
commit b94e498226

View File

@@ -36,8 +36,8 @@ class NotifPipelineFlags @Inject constructor(
return false
}
fun assertLegacyPipelineEnabled(): Nothing =
error("Old pipeline code running w/ new pipeline enabled")
fun assertLegacyPipelineEnabled(): Unit =
check(!isNewPipelineEnabled()) { "Old pipeline code running w/ new pipeline enabled" }
fun isNewPipelineEnabled(): Boolean =
featureFlags.isEnabled(Flags.NEW_NOTIFICATION_PIPELINE_RENDERING)