Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Oct 6, 2021
1 parent 9e0a87b commit b9eee38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/darker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ def _get_rev1_path(path: Path) -> Path:
# This is a VSCode temporary file. Drop the hash and the `.tmp` suffix to get the
# original file name for retrieving the previous revision to diff against.
path_with_hash = path.with_suffix("")
original_path = path_with_hash.with_suffix("")
return original_path
return path_with_hash.with_suffix("")


def modify_file(path: Path, new_content: TextDocument) -> None:
Expand Down

0 comments on commit b9eee38

Please sign in to comment.