Spaces:
Running
Running
namuan commited on
Commit ·
6abbb16
1
Parent(s): 00aa052
fix: Use `elif` which is possibly the intended behavior (#23)
Browse files- repo2vec/chunker.py +1 -1
repo2vec/chunker.py
CHANGED
|
@@ -284,7 +284,7 @@ class UniversalFileChunker(Chunker):
|
|
| 284 |
# Figure out the appropriate chunker to use.
|
| 285 |
if file_path.lower().endswith(".ipynb"):
|
| 286 |
chunker = self.ipynb_chunker
|
| 287 |
-
|
| 288 |
chunker = self.code_chunker
|
| 289 |
else:
|
| 290 |
chunker = self.text_chunker
|
|
|
|
| 284 |
# Figure out the appropriate chunker to use.
|
| 285 |
if file_path.lower().endswith(".ipynb"):
|
| 286 |
chunker = self.ipynb_chunker
|
| 287 |
+
elif CodeFileChunker.is_code_file(file_path):
|
| 288 |
chunker = self.code_chunker
|
| 289 |
else:
|
| 290 |
chunker = self.text_chunker
|