Skip to content

Commit

Permalink
don't return True or False after download
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Mar 25, 2015
1 parent ce62a5c commit 67d6c1d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pyensembl/sequence_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,9 @@ def download(self, force=False):
"""Download the FASTA file if one does not exist.
If `force` is True, overwrites any existing file.
Returns True if a download happened.
"""
if self.local_file_exists():
if not force:
return False
self._fetch(force=force)
return True
if not self.local_file_exists() or force:
self._fetch(force=force)

@property
def local_database_path(self):
Expand Down

0 comments on commit 67d6c1d

Please sign in to comment.