Skip to content

Commit

Permalink
Remove a now-unnecessary "if os.path.exists()"
Browse files Browse the repository at this point in the history
  • Loading branch information
edbrannin committed Mar 10, 2017
1 parent b7b8257 commit 6835069
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions peru/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ def export_tree(self, tree, dest, previous_tree=None, *, force=False,
tree = tree or (yield from self.get_empty_tree())
previous_tree = previous_tree or (yield from self.get_empty_tree())

if not os.path.exists(dest):
makedirs(dest)
makedirs(dest)

with contextlib.ExitStack() as stack:

Expand Down

0 comments on commit 6835069

Please sign in to comment.