Add missing return statement in the send method for the delete request.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@164572 82a268e6-3cf1-43bd-a215-b396298e98cf
master
Manuele Simi 6 years ago
parent 67915767e1
commit 89f4730523

@ -43,10 +43,10 @@ public final class DeleteRequest extends RequestToResourceRegistry {
try {
boolean deleted = this.getContextClient().delete(context);
if (!deleted) {
ResponseFromResourceRegistry.fromErrorCode(RMDeleteContextCode.GENERIC_ERROR_FROM_RR);
return ResponseFromResourceRegistry.fromErrorCode(RMDeleteContextCode.GENERIC_ERROR_FROM_RR);
}
} catch (ResourceRegistryException e) {
ResponseFromResourceRegistry.fromErrorCode(RMDeleteContextCode.GENERIC_ERROR_FROM_RR);
return ResponseFromResourceRegistry.fromErrorCode(RMDeleteContextCode.GENERIC_ERROR_FROM_RR);
}
return ResponseFromResourceRegistry.newSuccessResponseWithMessage("Context successfully deleted");

Loading…
Cancel
Save