Merge "return this expression instead of assigning it to the temporary variable"
authorIttay Stern <ittay.stern@att.com>
Mon, 12 Aug 2019 08:26:29 +0000 (08:26 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 12 Aug 2019 08:26:29 +0000 (08:26 +0000)
epsdk-app-onap/src/main/java/org/onap/portalapp/scheduler/RegistryAdapter.java

index 9f8f727..02fbfa9 100644 (file)
@@ -3,6 +3,7 @@
  * ONAP Portal SDK
  * ===================================================================
  * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2019 IBM.
  * ===================================================================
  *
  * Unless otherwise specified, all software contained herein is licensed
@@ -74,8 +75,7 @@ public class RegistryAdapter {
        public List<Trigger> addCoreTriggers() {
                // On startup of the application after crash recovery, invoke workflow
                // schedule trigger
-               List<Trigger> triggers = getWorkflowScheduleService().triggerWorkflowScheduling();
-               return triggers;
+               return getWorkflowScheduleService().triggerWorkflowScheduling();
        }
 
        public void setSchedulerBean(final SchedulerFactoryBean schedulerBean) {