diff --git a/src/main/java/net/milkbowl/vault/economy/EconomyResponse.java b/src/main/java/net/milkbowl/vault/economy/EconomyResponse.java index 508e2fd..ea9807a 100644 --- a/src/main/java/net/milkbowl/vault/economy/EconomyResponse.java +++ b/src/main/java/net/milkbowl/vault/economy/EconomyResponse.java @@ -79,11 +79,6 @@ public EconomyResponse(double amount, double balance, ResponseType type, String * @return Value */ public boolean transactionSuccess() { - switch (type) { - case SUCCESS: - return true; - default: - return false; - } + return type == ResponseType.SUCCESS; } -} \ No newline at end of file +}