Skip to content

Commit

Permalink
Return exact match instead of adding to set per #631 code review.
Browse files Browse the repository at this point in the history
Re: #604

Co-authored-by: Sawood Alam <ibnesayeed@gmail.com>
  • Loading branch information
machawk1 and ibnesayeed committed Mar 2, 2020
1 parent af4aa1f commit 854af87
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ipwb/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ def bin_search(iter, key, datetime=None):
lines.add(nextLine)
elif matchDegree == MementoMatch.EXACTMATCH:
# Exact match found while iterating
lines.clear()
lines.add(nextLine)
break
return [nextLine]

nextLine = iter.readline()

Expand Down

0 comments on commit 854af87

Please sign in to comment.