Skip to content

Commit

Permalink
Simplify EconomyResponse#transactionSuccess()
Browse files Browse the repository at this point in the history
  • Loading branch information
2008Choco authored and cerealcable committed Jun 27, 2022
1 parent af58e67 commit 9520d88
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main/java/net/milkbowl/vault/economy/EconomyResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit 9520d88

Please sign in to comment.