diff --git a/src/main/java/com/cflint/Version.java b/src/main/java/com/cflint/Version.java index 9ee21bed3..4ab804234 100644 --- a/src/main/java/com/cflint/Version.java +++ b/src/main/java/com/cflint/Version.java @@ -5,15 +5,13 @@ public class Version { public static String getVersion() { - try { - String version = CFLintMain.class.getPackage().getImplementationVersion(); - if (version != null) { - return version; - } else { - return ""; - } - } catch (Exception e) { + + String version = CFLintMain.class.getPackage().getImplementationVersion(); + if (version != null) { + return version; + } else { return ""; } + } }