diff options
author | Robin Stocker | 2010-10-29 13:12:48 +0000 |
---|---|---|
committer | Robin Stocker | 2010-10-29 13:12:48 +0000 |
commit | d36c80fd048fc55d7ac31ae62eb67fbac9b12e31 (patch) | |
tree | 451c423fa08b4f5438d342eb7db484f2ba9f3992 /org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java | |
parent | 7f939ba86e4c4ce379b4dc62045109a91e97dd72 (diff) | |
download | jgit-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.java | 3 |
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(); |