mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 23:20:09 +03:00
Rewrite conditional
This commit is contained in:
parent
eed59dcc1e
commit
efc2b7db95
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class StreamChangeCache(object):
|
|||
keys = self._cache.keys()
|
||||
i = keys.bisect_right(stream_pos)
|
||||
|
||||
return len(keys[i:]) > 0
|
||||
return i < len(keys)
|
||||
else:
|
||||
self.metrics.inc_misses()
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue