Skip to content

Commit

Permalink
refactor #605 Remove useless elvis operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastkidjp committed Aug 17, 2020
1 parent 1902430 commit 8576475
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ClearTextDialogFragment : DialogFragment() {
fun show(target: Fragment) {
val dialogFragment = ClearTextDialogFragment()
dialogFragment.setTargetFragment(target, 1)
val fragmentManager = target.parentFragmentManager ?: return
val fragmentManager = target.parentFragmentManager
dialogFragment.show(
fragmentManager,
dialogFragment::class.java.canonicalName
Expand Down

0 comments on commit 8576475

Please sign in to comment.