Commit a671bfba authored by Chris Lamb's avatar Chris Lamb 💬

Tidy definition of "no file-specific differences were detected" message suffix.

Gbp-Dch: ignore
parent d41f09ba
...@@ -421,11 +421,9 @@ class File(object, metaclass=abc.ABCMeta): ...@@ -421,11 +421,9 @@ class File(object, metaclass=abc.ABCMeta):
difference = self.compare_bytes(other, source=source) difference = self.compare_bytes(other, source=source)
if difference is None: if difference is None:
return None return None
suffix = ( suffix = ''
' ({})'.format(self.magic_file_type) if self.magic_file_type != 'data':
if self.magic_file_type != 'data' suffix = ' ({})'.format(self.magic_file_type)
else ''
)
difference.add_comment( difference.add_comment(
"Format-specific differences are supported for this " "Format-specific differences are supported for this "
"file format, but no file-specific differences were " "file format, but no file-specific differences were "
......
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