Skip to content

Commit

Permalink
Fix error detected by linting in diff logic
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jul 31, 2020
1 parent a177a98 commit b668b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isort/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def _sort_imports(
sorted_output = output.sorted_imports(
parsed, config, extension, import_type="import"
)
if sorted_output.strip() != output.strip():
if sorted_output.strip() != current.strip():
made_changes = True
new_input += sorted_output
new_input += extra_space
Expand Down

0 comments on commit b668b55

Please sign in to comment.