Merge "Drop redundant check in SLO segment-size validation"

This commit is contained in:
Jenkins
2015-01-30 04:15:46 +00:00
committed by Gerrit Code Review

View File

@@ -591,7 +591,7 @@ class StaticLargeObject(object):
except (ValueError, TypeError):
raise HTTPBadRequest('Invalid Manifest File')
if seg_size < self.min_segment_size and \
len(parsed_data) > 1 and index < len(parsed_data) - 1:
index < len(parsed_data) - 1:
raise HTTPBadRequest(
'Each segment, except the last, must be at least '
'%d bytes.' % self.min_segment_size)