From 7dcfe5a7ecb3f95f4556324dea0b8519b68d68dc Mon Sep 17 00:00:00 2001 From: Clay Gerrard Date: Fri, 30 Sep 2016 12:16:58 -0700 Subject: [PATCH] Remove unneeded line from ring.utils.dispersion_report This line is render inert by the condition right above it. The behavior/correctness is already well vetted by ring.test_utils:TestUtils.test_dispersion_report Change-Id: I7d7a193c52d1005cecd9c70953d55e2b9755a64d --- 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 a59fb3115c..0cdd0a0d68 100644 --- a/swift/common/ring/utils.py +++ b/swift/common/ring/utils.py @@ -624,7 +624,6 @@ def dispersion_report(builder, search_filter=None, verbose=False): if tier_dispersion > max_dispersion: max_dispersion = tier_dispersion worst_tier = tier_name - max_dispersion = max(max_dispersion, tier_dispersion) if not verbose: continue