Avoid unnecessary comparisons in boolean expressions

This commit is contained in:
ghubstan 2021-01-06 18:13:01 -03:00
parent 80c10dba78
commit 424c3cb1ab
No known key found for this signature in database
GPG key ID: E35592D6800A861E

View file

@ -146,7 +146,7 @@ public class CreateOfferService {
amount.value,
minAmount.value,
useMarketBasedPrice,
(useMarketBasedPrice == true ? marketPriceMargin : price.getValue()),
(useMarketBasedPrice ? marketPriceMargin : price.getValue()),
buyerSecurityDepositAsDouble);
long creationTime = new Date().getTime();