Merge pull request #15 from SKBotNL/master

Remove unneeded else clause in when
This commit is contained in:
NotAlexNoyle authored and GitHub committed 2024-04-02 11:50:52 +00:00
commit 5ed6676c10
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
}
}