Skip to content

Commit

Permalink
chore: apply auto fix to avoid other unnecessary auto update (#3698)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwpaper authored Jan 15, 2025
1 parent 5aa27b5 commit 58717da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/ollama-api-bindings/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl OllamaModelExt for Ollama {
let available = self.model_available(&model).await?;

let allow_pull = std::env::var_os(ALLOW_PULL_ENV)
.map(|x| x == "1" || x.to_ascii_lowercase() == "y" || x.to_ascii_lowercase() == "yes")
.map(|x| x == "1" || x.eq_ignore_ascii_case("y") || x.eq_ignore_ascii_case("yes"))
.unwrap_or(false);

match (available, allow_pull) {
Expand Down
2 changes: 1 addition & 1 deletion crates/tabby-git/src/grep/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn read_lines(content: &[u8]) -> anyhow::Result<Vec<GrepLine>> {
let mut byte_offset = 0;
for line in line_reader {
let line = line? + "\n";
let bytes_length = line.as_bytes().len();
let bytes_length = line.len();
lines.push(GrepLine {
line: GrepTextOrBase64::Text(line),
byte_offset,
Expand Down

0 comments on commit 58717da

Please sign in to comment.