aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/java
diff options
context:
space:
mode:
authorsharath reddy <bs.reddy@huawei.com>2022-04-08 12:45:27 +0530
committersharath reddy <bs.reddy@huawei.com>2022-04-08 12:46:45 +0530
commit37efd3fe909604e58712784593758f4621af3846 (patch)
treefcae8446c10502bff1b31a097de4b7d6486141bf /framework/src/main/java
parent3c5930e0d61f3f0b0eec57c20a2b82a6838ad70e (diff)
Removed useless curly braces around statement and useless return keyword
Issue-ID: CLI-442 report: tested weather-report, execution-list Signed-off-by: sharath reddy <bs.reddy@huawei.com> Change-Id: Iad499395c2465893a766dc9e9e5315c48e0315ee
Diffstat (limited to 'framework/src/main/java')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/store/OnapCommandExecutionStore.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/store/OnapCommandExecutionStore.java b/framework/src/main/java/org/onap/cli/fw/store/OnapCommandExecutionStore.java
index a1c84a41..b68474db 100644
--- a/framework/src/main/java/org/onap/cli/fw/store/OnapCommandExecutionStore.java
+++ b/framework/src/main/java/org/onap/cli/fw/store/OnapCommandExecutionStore.java
@@ -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);