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
This commit is contained in:
Manuele Simi 2018-02-24 03:54:22 +00:00
parent 67915767e1
commit 89f4730523
1 changed files with 2 additions and 2 deletions

View File

@ -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");