Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Nov 2, 2019
1 parent 7ef84ee commit b007837
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jupytext/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b007837

Please sign in to comment.