diff options
author | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-08-13 15:23:38 +0530 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2019-08-19 16:39:02 +0000 |
commit | 602de7cdf89676891604130d64e8bc4cc88c05f6 (patch) | |
tree | c47df08b691375995f94888b445910ddacc4987d /resource-assignment/provider | |
parent | 2c933a0141303403d5c0bc82b96983646fdb4e03 (diff) |
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 <tsaila10@in.ibm.com>
Diffstat (limited to 'resource-assignment/provider')
-rw-r--r-- | resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java | 4 |
1 files changed, 1 insertions, 3 deletions
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; |