Commit 9f30b4b2 authored by Chris Lamb's avatar Chris Lamb 💬

Prefer to comment that files are identical rather than having a "fuzziness score" of zero.

parent 21e4c1dd
......@@ -158,6 +158,8 @@ class Container(object, metaclass=abc.ABCMeta):
for my_name, other_name, score in self.perform_fuzzy_matching(my_members, other_members):
comment = "Files similar despite different names" \
" (difference score: {})".format(score)
if score == 0:
comment = "Files identical despite different names"
yield prep_yield(my_name, other_name, comment)
if Config().new_file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment