mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-02-16 19:21:20 +01:00
➰ switch .size() <= 0 to isEmpty()
Took 1 minute
This commit is contained in:
parent
85ec3f32d7
commit
64efb62737
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user