Skip to content

Commit

Permalink
fix(merchant-sdk): Added curly braces
Browse files Browse the repository at this point in the history
EC-128
  • Loading branch information
danicretu committed Aug 20, 2024
1 parent 98d1deb commit d421b72
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ class GiniMerchant(
* @param flowConfiguration - optional parameter with the [PaymentFlowConfiguration]
*/
fun createFragment(iban: String, recipient: String, amount: String, purpose: String, flowConfiguration: PaymentFlowConfiguration? = null): PaymentFragment {
if (iban.isEmpty() || recipient.isEmpty() || amount.isEmpty() || purpose.isEmpty())
if (iban.isEmpty() || recipient.isEmpty() || amount.isEmpty() || purpose.isEmpty()) {
error("Payment details are incomplete.")
}

try {
amount.toBackendFormat()
Expand Down

0 comments on commit d421b72

Please sign in to comment.