aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2012-11-08 08:17:13 (EST)
committerRobin Stocker2012-11-08 08:18:21 (EST)
commit106e8b87625cd1ad6b2cec14d676c23174422352 (patch)
tree27c93329c2df3470a954e78cc5d94b1b2bce4a3a
parentf3a8d7413c423966ea474e132b0d2c908d67ed2e (diff)
downloadjgit-106e8b87625cd1ad6b2cec14d676c23174422352.zip
jgit-106e8b87625cd1ad6b2cec14d676c23174422352.tar.gz
jgit-106e8b87625cd1ad6b2cec14d676c23174422352.tar.bz2
Fix redundant null check warning in Repositoryrefs/changes/98/8598/1
rev is always null because of `if (rev != null) return ...` above. Change-Id: I8168aefd344e0c4b0c68caea1a3daee66c07173b
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index 76f5378..911b1f6 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -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))