Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 10, 2025
1 parent d5dcf0f commit 3354c36
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/tabby/src/services/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,8 @@ async fn get_commit(reader: &IndexReader, id: &str) -> Option<String> {
}

let doc = reader.searcher().doc(doc[0].1).ok()?;
get_json_text_field_optional(
&doc,
schema.field_attributes,
code::fields::COMMIT,
)
.map(|s| s.to_owned())
get_json_text_field_optional(&doc, schema.field_attributes, code::fields::COMMIT)
.map(|s| s.to_owned())
}

fn get_text(doc: &TantivyDocument, field: schema::Field) -> &str {
Expand Down

0 comments on commit 3354c36

Please sign in to comment.