Merge pull request #15 from SKBotNL/master
Remove unneeded else clause in when
This commit is contained in:
1 file changed
-1
@@ -78,7 +78,6 @@ class PostgreSQL {
|
||||
BalanceType.INVENTORY_BALANCE -> playerBalance.inventoryBalance
|
||||
BalanceType.ENDER_CHEST_BALANCE -> playerBalance.enderChestBalance
|
||||
BalanceType.ALL -> if (playerBalance.bankBalance != null && playerBalance.inventoryBalance != null && playerBalance.enderChestBalance != null) playerBalance.bankBalance + playerBalance.inventoryBalance + playerBalance.enderChestBalance else null
|
||||
else -> return null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user