0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-15 06:21:49 +01:00

Remove needless call to evict()

This commit is contained in:
Erik Johnston 2017-01-17 11:42:26 +00:00
parent d906206049
commit 1ccd5676e3

View file

@ -154,7 +154,6 @@ class LruCache(object):
def cache_set_default(key, value):
node = cache.get(key, None)
if node is not None:
evict() # As the new node may be bigger than the old node.
return node.value
else:
add_node(key, value)