From cc1ecbb01b39f972535e24cd38fb641ccf4cd6b4 Mon Sep 17 00:00:00 2001 From: Avinash S Date: Thu, 8 Mar 2018 05:19:17 +0000 Subject: Fix sonar issues for VNFSDK Validation Sonar blocker fix Issue-ID: VNFSDK-219 Change-Id: Ifb4fff7f1d74e132698f4a89ac0306ab0ba0d3cb Signed-off-by: Avinash S --- .../src/main/java/org/onap/validation/csar/CsarValidator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'csarvalidation/src') 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; } /** -- cgit 1.2.3-korg