Browse Source

Fix redundant null check warning in Repository

rev is always null because of `if (rev != null) return ...` above.

Change-Id: I8168aefd344e0c4b0c68caea1a3daee66c07173b
tags/v2.2.0.201212191850-r
Robin Stocker 11 years ago
parent
commit
106e8b8762
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java View File

@@ -697,7 +697,7 @@ public abstract class Repository {
return rev.copy();
if (name != null)
return name;
if (rev == null && done == revstr.length())
if (done == revstr.length())
return null;
name = revstr.substring(done);
if (!Repository.isValidRefName("x/" + name))

Loading…
Cancel
Save