[fenix] For https://github.com/mozilla-mobile/fenix/issues/357 - Removes unneeded if statement

pull/600/head
Jeff Boek 6 years ago
parent 4c1dcb7383
commit 55fc77fcb6

@ -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()
}

Loading…
Cancel
Save