Skip to content

Commit

Permalink
Simplify if statement
Browse files Browse the repository at this point in the history
Bow down to the Travis/pylint overlord
  • Loading branch information
omad committed Feb 16, 2016
1 parent 5e56abf commit fca1eb4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions eodatasets/drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,8 @@ def include_file(self, file_path):
False
"""
# Skip hidden files and envi headers. (envi files are converted to tif during copy)
if (file_path.suffix == '.bin' and
file_path.name.startswith('reflectance_%s' % self.subset_name)):
return True
else:
return False
return (file_path.suffix == '.bin' and
file_path.name.startswith('reflectance_%s' % self.subset_name))

def translate_path(self, dataset, file_path):
"""
Expand Down

0 comments on commit fca1eb4

Please sign in to comment.