Skip to content

Commit

Permalink
Remove unnecessary assert, fix comment. (#13279)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsop-479 authored and mikemccand committed Apr 23, 2024
1 parent d8a8147 commit a2f48d8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public SeekStatus scanToTerm(BytesRef target, boolean exactOnly) throws IOExcept
CompressionAlgorithm compressionAlg = CompressionAlgorithm.NO_COMPRESSION;

// Target's prefix matches this block's prefix; we
// scan the entries check if the suffix matches.
// scan the entries to check if the suffix matches.
public SeekStatus scanToTermLeaf(BytesRef target, boolean exactOnly) throws IOException {

// if (DEBUG) System.out.println(" scanToTermLeaf: block fp=" + fp + " prefix=" + prefix +
Expand Down Expand Up @@ -610,7 +610,6 @@ public SeekStatus scanToTermLeaf(BytesRef target, boolean exactOnly) throws IOEx
// would have followed the index to this
// sub-block from the start:

assert ste.termExists;
fillTerm();
// if (DEBUG) System.out.println(" found!");
return SeekStatus.FOUND;
Expand Down Expand Up @@ -729,7 +728,7 @@ public SeekStatus binarySearchTermLeaf(BytesRef target, boolean exactOnly) throw
}

// Target's prefix matches this block's prefix; we
// scan the entries check if the suffix matches.
// scan the entries to check if the suffix matches.
public SeekStatus scanToTermNonLeaf(BytesRef target, boolean exactOnly) throws IOException {

// if (DEBUG) System.out.println(" scanToTermNonLeaf: block fp=" + fp + " prefix=" + prefix +
Expand Down

0 comments on commit a2f48d8

Please sign in to comment.