Merge "Removed useless curly braces around statement and useless return keyword"
[cli.git] / framework / src / main / java / org / onap / cli / fw / store / OnapCommandExecutionStore.java
index a1c84a4..b68474d 100644 (file)
@@ -471,9 +471,7 @@ public class OnapCommandExecutionStore {
     }
 
     private File getExecutionDir(String executionId) throws OnapCommandExecutionNotFound {
-        File []f =  new File(getBasePath()).listFiles((dir, name) -> {
-            return name.startsWith(executionId);
-        });
+        File []f =  new File(getBasePath()).listFiles((dir, name) -> name.startsWith(executionId));
 
         if (f.length == 0) {
             throw new OnapCommandExecutionNotFound(executionId);