diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-01-21 23:55:08 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-01-21 23:55:08 +0100 |
commit | 39b8f43dcd28b4f767d6ef0087810079b6563fee (patch) | |
tree | ecd28d8b9d7e84064a45205f6190994000135038 | |
parent | 7383d34737d94497545b3e9c261c52d985ee6c04 (diff) | |
download | jgit-39b8f43dcd28b4f767d6ef0087810079b6563fee.tar.gz jgit-39b8f43dcd28b4f767d6ef0087810079b6563fee.zip |
pgm: Fix missing braces in Version.run()
Change-Id: I4c5633846320f0324714f635b2be388b17cf79fa
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java index 1979971884..cb447e46a8 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java @@ -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( |