From a65ed1ed4969925f8d615d1ecb91ab8973b1738d Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Tue, 13 Oct 2009 12:44:14 +0000
Subject: [PATCH] remove useless if statement

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29596 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Tool/CacheTool.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/product/ERP5Type/Tool/CacheTool.py b/product/ERP5Type/Tool/CacheTool.py
index 2ae96ca8ff..8de070f69c 100644
--- a/product/ERP5Type/Tool/CacheTool.py
+++ b/product/ERP5Type/Tool/CacheTool.py
@@ -118,11 +118,10 @@ class CacheTool(BaseTool):
     CachingMethod.factories = {}
     ## read configuration from ZODB
     for key, item in self.getCacheFactoryList().items():
-      if len(item['cache_plugins']):
-        ## init cache backend storages
-        for cp in item["cache_plugins"]:
-          cp.initCacheStorage()
-        CachingMethod.factories[key] = CacheFactory(item['cache_plugins'], item['cache_params'])    
+      ## init cache backend storages
+      for cp in item["cache_plugins"]:
+        cp.initCacheStorage()
+      CachingMethod.factories[key] = CacheFactory(item['cache_plugins'], item['cache_params'])    
     if REQUEST is not None:
       self.REQUEST.RESPONSE.redirect('cache_tool_configure?manage_tabs_message=Cache updated.')
 
-- 
2.30.9