FilesystemDeleteHandler: Don't instantiate event if there are no listeners

If there are no ProjectDeletedListener instances registered, it is
not necessary to instantiate an Event object that will not be used.

Check if there are any listeners, and early exit when there are none.

Change-Id: Ib036920e2c2d07507748fcc182db7568dbdb96f4
1 file changed
tree: a827c641d4e88777985b6e11dbe2c16b115f48eb
  1. .settings/
  2. src/
  3. tools/
  4. .bazelrc
  5. .gitignore
  6. bazlets.bzl
  7. BUILD
  8. external_plugin_deps.bzl
  9. README.md
  10. WORKSPACE
README.md

Delete project plugin for Gerrit Code Review

A plugin which allows projects to be deleted from Gerrit via an SSH command, REST API or the Project settings screen.

Build Status