diff --git a/src/main/java/cactusServer/resources/AccountsRest.java b/src/main/java/cactusServer/resources/AccountsRest.java index c85fcea..7f3f0f2 100644 --- a/src/main/java/cactusServer/resources/AccountsRest.java +++ b/src/main/java/cactusServer/resources/AccountsRest.java @@ -55,11 +55,7 @@ // @Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.TEXT_PLAIN) public String deleteAccount(@PathParam("uniqueID") String uniqueID) { - if (Accounts.getInstance().getAccountByuniqueID(uniqueID) != null) { - return JSON.encode(Accounts.getInstance().deleteAccount(uniqueID)); - } else { - throw new WebApplicationException(400); - } + return JSON.encode(Accounts.getInstance().deleteAccount(uniqueID)); } @GET