Skip to content

Commit a0685a2

Browse files
committed
refactor: remove unnecessary header handling in chunk processing and update example usage
1 parent b9f264b commit a0685a2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docreader/splitter/splitter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ def _merge(self, splits: List[str]) -> List[Tuple[int, int, str]]:
198198

199199
# handle the last chunk
200200
assert cur_chunk
201-
if cur_headers and cur_len < self.chunk_size:
202-
cur_chunk.insert(0, (cur_chunk[0][0], cur_chunk[0][1], cur_headers))
203201
chunks.append(
204202
(
205203
cur_chunk[0][0],

0 commit comments

Comments
 (0)