Commit ca52ecf1 authored by Julien Muchembled's avatar Julien Muchembled

client: remove useless test in ClientCache.store

Values of '_oid_dict' attribute are never empty.
parent 5b181038
......@@ -212,12 +212,11 @@ class ClientCache(object):
break
item_list.insert(i, item)
else:
if item_list:
prev = item_list[-1]
item.counter = prev.counter
prev.counter = 0
if prev.level > 1:
self._fetched(prev)
prev = item_list[-1]
item.counter = prev.counter
prev.counter = 0
if prev.level > 1:
self._fetched(prev)
item_list.append(item)
item.data = data
self._fetched(item)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment