mirror of
https://github.com/MilkBowl/VaultAPI.git
synced 2024-09-27 14:53:01 +02:00
Simplify EconomyResponse#transactionSuccess()
This commit is contained in:
parent
ea40092989
commit
a88b9f8cda
@ -79,11 +79,6 @@ public class EconomyResponse {
|
||||
* @return Value
|
||||
*/
|
||||
public boolean transactionSuccess() {
|
||||
switch (type) {
|
||||
case SUCCESS:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return type == ResponseType.SUCCESS;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user