MilkBowl / VaultAPI

API Component of Vault
GNU Lesser General Public License v3.0
273 stars 109 forks source link

Replace unnecessary switch block #122

Closed lokka30 closed 3 years ago

lokka30 commented 3 years ago

This method in EconomyResponse.java can be improved by replacing it with:

/**
 * Checks if an operation was successful
 * @return if the operation was successful
 */
public boolean transactionSuccess() {
    return type == ResponseType.SUCCESS;
}

Didn't write this in an IDE so please check for errors. :)

lokka30 commented 3 years ago

My bad, #97 had already done this. Didn't see it.