Skip to content

Commit

Permalink
Avoid Scrutinizer issue about undef var for execution paths
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Sep 23, 2019
1 parent 08463a1 commit af8c54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annif/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def open_doc_path(path):
docs = open_doc_path(os.path.devnull)
elif len(paths) == 1:
docs = open_doc_path(paths[0])
elif len(paths) > 1:
else:
corpora = [open_doc_path(path) for path in paths]
docs = annif.corpus.CombinedCorpus(corpora)
return docs
Expand Down

0 comments on commit af8c54d

Please sign in to comment.