mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-29 16:08:38 +00:00
Remove unused variable
This commit is contained in:
parent
f58f58fc86
commit
f1b1793e29
@ -30,7 +30,6 @@ def write_documents_to_db(document_store, document_dir, clean_func=None, only_em
|
||||
|
||||
# read and add docs
|
||||
docs_to_index = []
|
||||
doc_id = 1
|
||||
for path in file_paths:
|
||||
with open(path) as doc:
|
||||
text = doc.read()
|
||||
@ -47,7 +46,6 @@ def write_documents_to_db(document_store, document_dir, clean_func=None, only_em
|
||||
"text": para
|
||||
}
|
||||
)
|
||||
doc_id += 1
|
||||
else:
|
||||
docs_to_index.append(
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user