Skip to content

Commit

Permalink
Remove now-redundant post-condition check in performSelection.
Browse files Browse the repository at this point in the history
This check is now performed later on, in the case that `runSelection`
returns a selection, so we can remove it from the `Nothing` case.
  • Loading branch information
jonathanknowles committed Sep 28, 2021
1 parent 2dbd4ea commit 28d7bac
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -828,8 +828,6 @@ performSelectionNonEmpty constraints params
, minimumBalance = utxoBalanceRequired
}
case maybeSelection of
Nothing | selectionLimit <= MaximumInputLimit 0 ->
selectionLimitReachedError []
Nothing ->
pure $ Left EmptyUTxO
Just selection | selectionLimitExceeded selection selectionLimit ->
Expand Down

0 comments on commit 28d7bac

Please sign in to comment.