From f1b1793e299f6eeae3c188da3589ff22291def00 Mon Sep 17 00:00:00 2001 From: Tanay Soni Date: Wed, 6 May 2020 12:17:06 +0200 Subject: [PATCH] Remove unused variable --- haystack/indexing/io.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/haystack/indexing/io.py b/haystack/indexing/io.py index de21eb8f5..003da53e8 100644 --- a/haystack/indexing/io.py +++ b/haystack/indexing/io.py @@ -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( {