Browse Source

Remove unnecessary null check

The field monitor is never null, it's a NullProgressMonitor when not
explicitly set.

Change-Id: I8ce703a32c28ce5c3455efeb7ed5f5c9a443cbef
stable-0.10
Robin Stocker 14 years ago
parent
commit
d36c80fd04
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java

3
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); FetchCommand fetch = new FetchCommand(repo);
fetch.setRemote(remote); fetch.setRemote(remote);
if (monitor != null) fetch.setProgressMonitor(monitor);
fetch.setProgressMonitor(monitor);
fetch.setTimeout(this.timeout); fetch.setTimeout(this.timeout);
fetchRes = fetch.call(); fetchRes = fetch.call();

Loading…
Cancel
Save