diff options
author | 2018-03-08 05:19:17 +0000 | |
---|---|---|
committer | 2018-03-08 05:19:17 +0000 | |
commit | cc1ecbb01b39f972535e24cd38fb641ccf4cd6b4 (patch) | |
tree | f49484fb4a8ac24e8887383e292b408e54cc78c1 | |
parent | 3b98cea01fc44f7fc0d18fc03acd24b487e595ec (diff) |
Fix sonar issues for VNFSDK Validation
Sonar blocker fix
Issue-ID: VNFSDK-219
Change-Id: Ifb4fff7f1d74e132698f4a89ac0306ab0ba0d3cb
Signed-off-by: Avinash S <avinash.s@huawei.com>
-rw-r--r-- | csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java b/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java index 8b6be13..bd5646c 100644 --- a/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java +++ b/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java @@ -114,20 +114,19 @@ public class CsarValidator { LOG.error("CSAR %s contents are not a valid! "); return false; } - return true; } catch (FileNotFoundException e1) { LOG.error("CSAR %s is not a valid CSAR/ZIP file! ", e1); return false; } finally { raf.close(); - return true; } } catch (IOException e1) { LOG.error("CSAR %s is not a valid CSAR/ZIP file! ", e1); return false; } + return true; } /** |