Skip to content

Commit

Permalink
Merge pull request #399 from TheRealAgentK/dev
Browse files Browse the repository at this point in the history
#390 - Review changes
  • Loading branch information
TheRealAgentK authored Aug 1, 2017
2 parents 23c129e + 03db519 commit c74f66d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/main/java/com/cflint/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}

}
}

0 comments on commit c74f66d

Please sign in to comment.