Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Return an empty list when the warning that some files should be inves…
Browse files Browse the repository at this point in the history
…tigated is raised
  • Loading branch information
sgibson91 authored Mar 9, 2022
1 parent 783d858 commit 33f55f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deduplify/compare_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ def compare_filenames(hash: str, db) -> list:
# but, by coincidence, have the same length
file_list.remove(file_list[0])
else:
# Hashes are same but filenames are different
# Hashes are same but filenames are different, return an empty list
warnings.warn(
"The following filenames need investigation.\n- " + "\n- ".join(file_list)
)
file_list = []

return file_list

Expand Down

0 comments on commit 33f55f9

Please sign in to comment.