Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2010-10-29 13:12:48 +0000
committerRobin Stocker2010-10-29 13:12:48 +0000
commitd36c80fd048fc55d7ac31ae62eb67fbac9b12e31 (patch)
tree451c423fa08b4f5438d342eb7db484f2ba9f3992 /org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java
parent7f939ba86e4c4ce379b4dc62045109a91e97dd72 (diff)
downloadjgit-d36c80fd048fc55d7ac31ae62eb67fbac9b12e31.tar.gz
jgit-d36c80fd048fc55d7ac31ae62eb67fbac9b12e31.tar.xz
jgit-d36c80fd048fc55d7ac31ae62eb67fbac9b12e31.zip
Remove unnecessary null check
The field monitor is never null, it's a NullProgressMonitor when not explicitly set. Change-Id: I8ce703a32c28ce5c3455efeb7ed5f5c9a443cbef
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java')
-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 acbf3f10aa..4fe050b2a3 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();

Back to the top