From 602de7cdf89676891604130d64e8bc4cc88c05f6 Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Tue, 13 Aug 2019 15:23:38 +0530 Subject: CCSDK-1556-Immediately return this expression instead of assigning it to the temporary variable "rd" immediately return the expression Issue-ID: CCSDK-1559 Change-Id: I6a6b76684b99783fd498e3fac88b0a3747186b1c Signed-off-by: Thugutla sailakshmi --- .../org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'resource-assignment/provider/src/main/java/org') diff --git a/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java b/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java index 83dab541..91f58734 100644 --- a/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java +++ b/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java @@ -259,9 +259,7 @@ public class EndPointAllocatorImpl implements EndPointAllocator { if (r != null && r.allocationItems != null && !r.allocationItems.isEmpty()) { log.info("ResourceName:" + r.resourceKey.resourceName + " assetId:" + r.resourceKey.assetId); - - ResourceData rd = getResourceData(r); - return rd; + return getResourceData(r); } return null; -- cgit 1.2.3-korg