Skip to content

Commit

Permalink
Fix Pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
xiafu-msft committed Oct 2, 2019
1 parent 128b890 commit 4327bf1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ def _do_optimize(self, given_range_start, given_range_end):
return False

for source_range in self.non_empty_ranges:
if given_range_end < source_range['start']:
if given_range_end < source_range['start']: # pylint:disable=no-else-return
return True
elif source_range['end'] < given_range_start:
pass

return False
else:
return False

return True

Expand Down
8 changes: 4 additions & 4 deletions sdk/storage/azure-storage-blob/azure/storage/blob/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def process_content(data, start_offset, end_offset, encryption):
return content


class _ChunkDownloader(object):
class _ChunkDownloader(object): # pylint: disable=too-many-instance-attributes
def __init__(
self,
client=None,
Expand Down Expand Up @@ -137,12 +137,12 @@ def _do_optimize(self, given_range_start, given_range_end):
return False

for source_range in self.non_empty_ranges:
if given_range_end < source_range['start']:
if given_range_end < source_range['start']: # pylint:disable=no-else-return
return True
elif source_range['end'] < given_range_start:
pass

return False
else:
return False

return True

Expand Down

0 comments on commit 4327bf1

Please sign in to comment.