Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
golanha committed Aug 19, 2020
1 parent bff8499 commit 6846f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hkube_python_wrapper/cache/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def update(self, key, value):
if (key in self._cache):
return None
while (self.sumSize + size) >= self._maxCacheSize * 1000 * 1000:
if (len(self._cache.keys()) == 0):
if (self._cache.keys()):
print("Trying to insert a value of size " + str(size) + " bytes, larger than " + str(
self._maxCacheSize) + "MB")
return None
Expand Down

0 comments on commit 6846f18

Please sign in to comment.