Fix redundant null check warning in Repository

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

Change-Id: I8168aefd344e0c4b0c68caea1a3daee66c07173b
This commit is contained in:
Robin Stocker 2012-11-08 14:17:13 +01:00
parent f3a8d7413c
commit 106e8b8762
1 changed files with 1 additions and 1 deletions

View File

@ -697,7 +697,7 @@ private Object resolve(final RevWalk rw, final String revstr)
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))