Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: BubbleCal <[email protected]>
  • Loading branch information
BubbleCal committed Nov 21, 2024
1 parent 480ebab commit 7140241
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions rust/lance-index/src/scalar/inverted/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,14 +650,11 @@ impl PostingReader {

// read the posting lists from existing data
if let Some(inverted_list) = posting_reader.inverted_list_reader.as_ref() {
match posting_reader.existing_tokens.get(&token) {
Some(token_id) => {
let batch = inverted_list
.posting_batch(*token_id, inverted_list.has_positions())
.await?;
batches.push(batch);
}
None => {}
if let Some(token_id) = posting_reader.existing_tokens.get(&token) {
let batch = inverted_list
.posting_batch(*token_id, inverted_list.has_positions())
.await?;
batches.push(batch);
}
}

Expand Down

0 comments on commit 7140241

Please sign in to comment.