Skip to content

Commit

Permalink
Simplify exact match return logic for #631
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Mar 2, 2020
1 parent 854af87 commit 3bc6e37
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ipwb/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,7 @@ def bin_search(iter, key, datetime=None):
# Continue searching until find first instance
right = mid
elif matchDegree == MementoMatch.EXACTMATCH:
lines.clear()
lines.add(line)

break
return [line]
elif key > surtk:
left = mid
else:
Expand Down

0 comments on commit 3bc6e37

Please sign in to comment.