[Checkins] SVN: Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/activity.py No need to explicitly return None.

Charlie Clark charlie at begeistert.org
Tue Dec 6 16:43:17 UTC 2011


Log message for revision 123596:
  No need to explicitly return None.

Changed:
  U   Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/activity.py

-=-
Modified: Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/activity.py
===================================================================
--- Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/activity.py	2011-12-06 16:29:47 UTC (rev 123595)
+++ Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/activity.py	2011-12-06 16:43:16 UTC (rev 123596)
@@ -53,10 +53,8 @@
 
     def _getActivityMonitor(self):
         if not hasattr(self._db, 'getActivityMonitor'):
-            return None
+            return
         am = self._db.getActivityMonitor()
-        if am is None:
-            return None
         return am
 
     def getHistoryLength(self):



More information about the checkins mailing list