From 0afcc674cb698906f354d9e57f97378d37d9d0c0 Mon Sep 17 00:00:00 2001 From: David Goetz Date: Thu, 12 Sep 2013 08:07:59 -0700 Subject: [PATCH] remove useless if from slo Change-Id: Id232c6973dcb55c19233b6d517770e58c2737ba0 --- swift/common/middleware/slo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/swift/common/middleware/slo.py b/swift/common/middleware/slo.py index 48760867b5..b6c3f93ff5 100644 --- a/swift/common/middleware/slo.py +++ b/swift/common/middleware/slo.py @@ -348,8 +348,7 @@ class StaticLargeObject(object): if len(sub_segments) > MAX_BUFFERED_SLO_SEGMENTS: raise HTTPBadRequest( 'Too many buffered slo segments to delete.') - if sub_segments: - seg_data = sub_segments.pop(0) + seg_data = sub_segments.pop(0) if seg_data.get('sub_slo'): new_env = req.environ.copy() new_env['REQUEST_METHOD'] = 'GET'