Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
minhna1112 committed Jul 1, 2024
1 parent 44fafa1 commit 3daaa8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codetext/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def parse_code(raw_code: str, language: str='Auto', tree_sitter_path: str=None)
if not os.path.exists(ts_lang_path):
logger.warning(f"Not found `{language}.so` in `{load_path}/tree-sitter/`, attemp to build language")
build_language(language, load_path)
language = Language(load_path + f"/tree-sitter/{language}.so", language)
language = Language(load_path + f"/tree-sitter/{language}.so", language)
parser.set_language(language)

if isinstance(raw_code, str):
Expand Down

0 comments on commit 3daaa8a

Please sign in to comment.