21639: PEP8 cleanup
[arvados.git] / sdk / python / arvados / diskcache.py
index 22bf73894b8fd8d9d1a1270de1973481a937dc51..a0b3bbb7c952344f8db1af3d4f42f13b6c28015c 100644 (file)
@@ -106,7 +106,7 @@ class DiskCacheSlot(object):
             return len(self.content)
 
     def evict(self):
-        if self.content is None or len(self.content) == 0:
+        if not self.content:
             return
 
         # The mmap region might be in use when we decided to evict