Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #357 - Removes unneeded if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
boek committed Feb 15, 2019
1 parent c435b88 commit 5a6a9d6
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 5a6a9d6

Please sign in to comment.