CCSDK-1556-Immediately return this expression instead of assigning it to the temporar... 01/93401/3
authorThugutla sailakshmi <tsaila10@in.ibm.com>
Tue, 13 Aug 2019 09:53:38 +0000 (15:23 +0530)
committerDan Timoney <dtimoney@att.com>
Mon, 19 Aug 2019 16:39:02 +0000 (16:39 +0000)
immediately return the expression

Issue-ID: CCSDK-1559
Change-Id: I6a6b76684b99783fd498e3fac88b0a3747186b1c
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java

index 83dab54..91f5873 100644 (file)
@@ -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;