From f918bd47c04a6b46b92f97a0e34cc205bee5bd00 Mon Sep 17 00:00:00 2001 From: Lin Yang Date: Wed, 23 Jul 2014 17:31:06 +0800 Subject: [PATCH] Remove duplicate conditional statement It contains two same conditional statements to check whether the first argurment is end with '.ring.gz'. The latter one can be covered by 'else' clause. Change-Id: I4b67dc330e82e793020bec4b74047062313ae11c Signed-off-by: Lin Yang --- swift/common/ring/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/swift/common/ring/utils.py b/swift/common/ring/utils.py index 45899041b7..1d795a4f49 100644 --- a/swift/common/ring/utils.py +++ b/swift/common/ring/utils.py @@ -280,7 +280,6 @@ def parse_builder_ring_filename_args(argvish): ring_file = first_arg else: ring_file = builder_file[:-len('.builder')] - if not first_arg.endswith('.ring.gz'): ring_file += '.ring.gz' return builder_file, ring_file