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): ...@@ -212,12 +212,11 @@ class ClientCache(object):
break break
item_list.insert(i, item) item_list.insert(i, item)
else: else:
if item_list: prev = item_list[-1]
prev = item_list[-1] item.counter = prev.counter
item.counter = prev.counter prev.counter = 0
prev.counter = 0 if prev.level > 1:
if prev.level > 1: self._fetched(prev)
self._fetched(prev)
item_list.append(item) item_list.append(item)
item.data = data item.data = data
self._fetched(item) 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