Skip to content
Snippets Groups Projects
Commit efc2b7db authored by Erik Johnston's avatar Erik Johnston
Browse files

Rewrite conditional

parent eed59dcc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment