Skip to content

Commit

Permalink
Sourcery suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcery-ai[bot] committed Aug 21, 2020
1 parent 2a5d0e6 commit 244338a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/ftp_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ class Writer(object):
def __init__(self, filename, size, directory=None):
self.filename = filename
self.size = size
if directory:
self.dest = os.path.join(directory, filename)
else:
self.dest = filename
self.dest = os.path.join(directory, filename) if directory else filename
self.status = self.fileobj = None

def __enter__(self):
Expand Down

0 comments on commit 244338a

Please sign in to comment.