From 663bfd5eeb94868cb046735d20c4f68173f9af9e Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 4 Nov 2020 19:26:55 +0100 Subject: [PATCH] Removed uneeded whitespaces --- .../resourceregistry/api/contexts/ContextCache.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/contexts/ContextCache.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/contexts/ContextCache.java index ab8137f..cd01bde 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/contexts/ContextCache.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/contexts/ContextCache.java @@ -83,10 +83,8 @@ public class ContextCache { public void refreshContextsIfNeeded() throws ResourceRegistryException { Calendar now = Calendar.getInstance(); - if(now.after(expiringTime) || (contexts==null && contextCacheRenewal!=null)) { try { - List contexts = contextCacheRenewal.renew(); singleton.cleanCache(now); setContexts(contexts);