Don't call event repository when trustLocalCache is set

Change-Id: Id3fdab48a856b1f6f33f7e7688b61da9b1f49e1a
diff --git a/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/cache/EiffelEventIdCacheImpl.java b/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/cache/EiffelEventIdCacheImpl.java
index 3812250..fdd62b1 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/cache/EiffelEventIdCacheImpl.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/cache/EiffelEventIdCacheImpl.java
@@ -111,6 +111,9 @@
             .findAny()
             .orElse(Optional.empty());
     if (id.isPresent()) return id;
+    if (cfg.trustLocalCache()) {
+      return Optional.empty();
+    }
 
     List<UUID> ids;
     try {