Browse Source

pgm: Fix missing braces in Version.run()

Change-Id: I4c5633846320f0324714f635b2be388b17cf79fa
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.3.0.201903061415-rc1
Matthias Sohn 5 years ago
parent
commit
39b8f43dcd
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java

+ 4
- 2
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java View File

@@ -63,13 +63,15 @@ class Version extends TextBuiltin {

// if Implementation-Version is not available then try reading
// Bundle-Version
if (version == null)
if (version == null) {
version = getBundleVersion();
}

// if both Implementation-Version and Bundle-Version are not available
// then throw an exception
if (version == null)
if (version == null) {
throw die(CLIText.get().cannotReadPackageInformation);
}

try {
outw.println(

Loading…
Cancel
Save