From 89f47305233049f50f96fcd384ef8adb94e4043d Mon Sep 17 00:00:00 2001 From: "manuele.simi" Date: Sat, 24 Feb 2018 03:54:22 +0000 Subject: [PATCH] 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 --- .../manager/webapp/context/DeleteRequest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/context/DeleteRequest.java b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/context/DeleteRequest.java index 2721f7f..7efc330 100644 --- a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/context/DeleteRequest.java +++ b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/context/DeleteRequest.java @@ -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");