switch .size() <= 0 to isEmpty()

Took 1 minute
This commit is contained in:
Kiran Hart 2023-02-21 13:41:19 -05:00
parent 85ec3f32d7
commit 64efb62737
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -133,7 +133,7 @@ public class AuctionPlayer {
int defaultTime = auctionSaleType == AuctionSaleType.USED_BIDDING_SYSTEM ? Settings.DEFAULT_AUCTION_LISTING_TIME.getInt() : Settings.DEFAULT_BIN_LISTING_TIME.getInt();
return possibleTimes.size() <= 0 ? defaultTime : Math.max(defaultTime, Collections.max(possibleTimes));
return possibleTimes.isEmpty() ? defaultTime : Math.max(defaultTime, Collections.max(possibleTimes));
}
}