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):
difference = self.compare_bytes(other, source=source)
if difference is None:
return None
suffix = (
' ({})'.format(self.magic_file_type)
if self.magic_file_type != 'data'
else ''
)
suffix = ''
if self.magic_file_type != 'data':
suffix = ' ({})'.format(self.magic_file_type)
difference.add_comment(
"Format-specific differences are supported for this "
"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