diff options
author | anushadasari <danush10@in.ibm.com> | 2019-11-20 16:48:48 +0530 |
---|---|---|
committer | anushadasari <danush10@in.ibm.com> | 2019-11-20 16:48:57 +0530 |
commit | ba7300b02c962c0c8759956f31b7d30a78df76dd (patch) | |
tree | 558f6755cec8a6030bec439b0b08e1ec52c08b3c | |
parent | 3e7ef00ea13529ad35e4ff91c551237840d59366 (diff) |
Immediately return this expression
Immediately return this expression instead of assigning it to the temporary variable "json".
Issue-ID: OPTFRA-644
Change-Id: I4676c4df578768ea977d2ebf3034ed9e6d30fb85
Signed-off-by: anushadasari <danush10@in.ibm.com>
-rw-r--r-- | cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/availability/timewindows/RecurringWindows.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/availability/timewindows/RecurringWindows.java b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/availability/timewindows/RecurringWindows.java index b3829c3..bbed8ad 100644 --- a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/availability/timewindows/RecurringWindows.java +++ b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/availability/timewindows/RecurringWindows.java @@ -237,9 +237,7 @@ public class RecurringWindows { String rdata = "RRULE:FREQ=MINUTELY;INTERVAL=" + durationInSeconds / 60; DateTime start = new DateTime(window.getStartTime().toInstant().toEpochMilli()); - DateTimeIterator recur = - DateTimeIteratorFactory.createDateTimeIterator(rdata, start, DateTimeZone.UTC, true); - return recur; + return DateTimeIteratorFactory.createDateTimeIterator(rdata, start, DateTimeZone.UTC, true); } |