diff --git a/jupytext/compare.py b/jupytext/compare.py index 885b3dcf6..5ac8d3550 100644 --- a/jupytext/compare.py +++ b/jupytext/compare.py @@ -34,8 +34,7 @@ def compare(actual, expected, return_diff=False): if return_diff: return diff raise AssertionError('\n' + diff) - if return_diff: - return '' + return '' if return_diff else None def filtered_cell(cell, preserve_outputs, cell_metadata_filter):