aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-service/src
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-11-18 19:36:00 +0530
committeranushadasari <danush10@in.ibm.com>2019-11-18 19:37:43 +0530
commite0c07d92538c54dac5051706d72b7d98978ed27d (patch)
tree9dd6b7d79df4f001ce6cae87b8613469eff7f7fe /cmso-service/src
parent274a3427cda59c9cb60ae930a740c61ecb5c5822 (diff)
Immediately return this expression
Immediately return this expression instead of assigning it to the temporary variable "json". Issue-ID: OPTFRA-644 Change-Id: I56c70d0baecfe9e376b16317f5cf7f54e4a89943 Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'cmso-service/src')
-rw-r--r--cmso-service/src/main/java/org/onap/optf/cmso/ticketmgt/bean/BuildCreateRequest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/ticketmgt/bean/BuildCreateRequest.java b/cmso-service/src/main/java/org/onap/optf/cmso/ticketmgt/bean/BuildCreateRequest.java
index 8c8cd6f..290375f 100644
--- a/cmso-service/src/main/java/org/onap/optf/cmso/ticketmgt/bean/BuildCreateRequest.java
+++ b/cmso-service/src/main/java/org/onap/optf/cmso/ticketmgt/bean/BuildCreateRequest.java
@@ -152,8 +152,7 @@ public class BuildCreateRequest {
*/
public JsonNode createGetChangeRecord(Map<String, Object> variables) {
JsonNode rawjson = getYaml("GetChangeRecord");
- JsonNode json = substituteJson(rawjson, variables);
- return json;
+ return substituteJson(rawjson, variables);
}
private JsonNode substituteJson(JsonNode json, Map<String, Object> variables) {