mirror of
https://github.com/MilkBowl/VaultAPI.git
synced 2024-11-21 18:05:15 +01:00
Simplify EconomyResponse#transactionSuccess()
This commit is contained in:
parent
af58e675c3
commit
9520d8847e
@ -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