Commit ba65fbfa authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[1456] fix a few comments and error messages

parent 1171a27a
......@@ -351,7 +351,6 @@ class Diff:
Raises a ValueError if the buffer is in single_update_mode.
"""
if self.__single_update_mode:
# This operation is only valid if the multi-update mode
raise ValueError("Compound buffer requested in single-update mode")
else:
return self.__buffer
......@@ -369,7 +368,6 @@ class Diff:
Raises a ValueError if the buffer is not in single_update_mode.
"""
if not self.__single_update_mode:
# This operation is only valid if the multi-update mode
raise ValueError("Compound buffer requested in single-update mode")
raise ValueError("Separate buffers requested in single-update mode")
else:
return (self.__deletions, self.__additions)
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