Skip to content

Commit

Permalink
Drop unnecessary null-safe checks
Browse files Browse the repository at this point in the history
we made `details.derivedCardInfo` gauranteed to be non-null in a
previous commit so now these checks are no necessary
  • Loading branch information
devinmorgan committed Dec 1, 2023
1 parent 8d9ac06 commit bd5d961
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class FlowTokenizeFragment : Fragment() {
isComplete.text = "isComplete: ${state.isComplete}"
isEmpty.text = "isEmpty: ${state.isEmpty}"
isValid.text = "isValid: ${state.isValid}"
usState.text = "usState: ${state.details.derivedCardInfo?.usState?.abbreviation}"
usState.text = "usState: ${state.details.derivedCardInfo.usState?.abbreviation}"
}

foragePanEditText.setOnFocusEventListener { setState() }
Expand All @@ -79,7 +79,7 @@ class FlowTokenizeFragment : Fragment() {
isComplete.text = "isComplete: ${state.isComplete}"
isEmpty.text = "isEmpty: ${state.isEmpty}"
isValid.text = "isValid: ${state.isValid}"
usState.text ="usState: ${state.details.derivedCardInfo?.usState?.abbreviation}"
usState.text = "usState: ${state.details.derivedCardInfo.usState?.abbreviation}"

viewModel.paymentMethod.observe(viewLifecycleOwner) {
when (it == null) {
Expand Down

0 comments on commit bd5d961

Please sign in to comment.