Skip to content

Commit

Permalink
Do not use else if and else clauses where redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeams committed Jun 6, 2018
1 parent ba97871 commit 2bc8aa7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/bisq/core/payment/ReceiptValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@ boolean isValid() {
if (predicates.isMatchingSepaOffer(offer, account)) {
// Sepa offer and taker account is Sepa or Sepa Instant
return true;
} else if (predicates.isMatchingSepaInstant(offer, account)) {
}

if (predicates.isMatchingSepaInstant(offer, account)) {
// Sepa Instant offer and taker account
return true;
} else if (predicates.isOfferRequireSameOrSpecificBank(offer, account)) {
}

if (predicates.isOfferRequireSameOrSpecificBank(offer, account)) {
return predicates.isMatchingBankId(offer, account);
} else {
return isEqualPaymentMethods;
}

return isEqualPaymentMethods;
}
}

0 comments on commit 2bc8aa7

Please sign in to comment.