Skip to content

Commit

Permalink
Remove unnecessary done() call on ProgressMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
vogella committed Dec 3, 2024
1 parent 1a42e02 commit 5c48af9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ private void addChild(URI childURI, boolean save, IProgressMonitor monitor, bool
SubMonitor sub = SubMonitor.convert(monitor);
URI absolute = URIUtil.makeAbsolute(childURI, getLocation());
if (childrenURIs.contains(childURI) || childrenURIs.contains(absolute)) {
sub.done();
return;
}
childrenURIs.add(childURI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ public IArtifactRepository load(URI location, int flags, IProgressMonitor monito
} catch (IOException e) {
String msg = NLS.bind(Messages.io_failedRead, location);
throw new ProvisionException(new Status(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_FAILED_READ, msg, e));
} finally {
if (monitor != null)
monitor.done();
}
}

Expand Down

0 comments on commit 5c48af9

Please sign in to comment.