Skip to content

Commit

Permalink
Don't claim we remove workdir with --no-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Sep 20, 2024
1 parent 60baa29 commit 6103345
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vcs-diff-lint
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,10 @@ class _Worker: # pylint: disable=too-few-public-methods

sys.exit(exit_status)


finally:
log.debug("removing workdir %s", self.workdir)
log.debug("%s workdir %s",
"keeping" if self.options.no_cleanup else "removing",
self.workdir)
if not self.options.no_cleanup:
shutil.rmtree(self.workdir)

Expand Down

0 comments on commit 6103345

Please sign in to comment.