Fixed tree-sitter scanning bug where passing --no-base64 caused errors to be printed when the file type couldn’t be determined

This commit is contained in:
Mick Grove 2025-10-08 10:55:43 -07:00
commit dbb97bdcf3

View file

@ -335,7 +335,7 @@ impl<'a> Matcher<'a> {
let blob_len = blob.len();
let should_run_tree_sitter = blob_len
let should_run_tree_sitter = blob_len > 0
&& blob_len <= TREE_SITTER_MAX_LIMIT
&& blob_len >= TREE_SITTER_MIN_LIMIT
&& has_raw_matches