diff --git a/app/src/main/java/org/mozilla/fenix/library/history/HistoryFragment.kt b/app/src/main/java/org/mozilla/fenix/library/history/HistoryFragment.kt index d03953f6ae..dc625881ef 100644 --- a/app/src/main/java/org/mozilla/fenix/library/history/HistoryFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/library/history/HistoryFragment.kt @@ -124,8 +124,5 @@ class HistoryFragment : Fragment(), CoroutineScope, BackHandler { } } - override fun onBackPressed(): Boolean { - if ((historyComponent.uiView as HistoryUIView).onBackPressed()) { return true } - return false - } + override fun onBackPressed(): Boolean = (historyComponent.uiView as HistoryUIView).onBackPressed() }