From d36c80fd048fc55d7ac31ae62eb67fbac9b12e31 Mon Sep 17 00:00:00 2001 From: Robin Stocker Date: Fri, 29 Oct 2010 15:12:48 +0200 Subject: [PATCH] Remove unnecessary null check The field monitor is never null, it's a NullProgressMonitor when not explicitly set. Change-Id: I8ce703a32c28ce5c3455efeb7ed5f5c9a443cbef --- org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java | 3 +-- 1 file changed, 1 insertion(+), 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 acbf3f10a..4fe050b2a 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 { FetchCommand fetch = new FetchCommand(repo); fetch.setRemote(remote); - if (monitor != null) - fetch.setProgressMonitor(monitor); + fetch.setProgressMonitor(monitor); fetch.setTimeout(this.timeout); fetchRes = fetch.call();