From 03db519e5c8cf83c5e3d5a68738bc9c608944f0c Mon Sep 17 00:00:00 2001 From: Kai Koenig Date: Wed, 2 Aug 2017 09:33:54 +1200 Subject: [PATCH] #390 - Review changes --- src/main/java/com/cflint/Version.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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 ""; } + } }