summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorRobin Stocker2010-10-29 09:12:48 (EDT)
committer Robin Stocker2010-10-29 09:12:48 (EDT)
commitd36c80fd048fc55d7ac31ae62eb67fbac9b12e31 (patch)
tree451c423fa08b4f5438d342eb7db484f2ba9f3992
parent7f939ba86e4c4ce379b4dc62045109a91e97dd72 (diff)
downloadjgit-d36c80fd048fc55d7ac31ae62eb67fbac9b12e31.zip
jgit-d36c80fd048fc55d7ac31ae62eb67fbac9b12e31.tar.gz
jgit-d36c80fd048fc55d7ac31ae62eb67fbac9b12e31.tar.bz2
Remove unnecessary null checkrefs/changes/22/1822/1
The field monitor is never null, it's a NullProgressMonitor when not explicitly set. Change-Id: I8ce703a32c28ce5c3455efeb7ed5f5c9a443cbef
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java
index acbf3f1..4fe050b 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java
@@ -202,8 +202,7 @@ public class PullCommand extends GitCommand<PullResult> {
FetchCommand fetch = new FetchCommand(repo);
fetch.setRemote(remote);
- if (monitor != null)
- fetch.setProgressMonitor(monitor);
+ fetch.setProgressMonitor(monitor);
fetch.setTimeout(this.timeout);
fetchRes = fetch.call();