Double negatives do not make code that isn't unclear..

Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
Jorik Schellekens 2019-08-05 11:39:58 +01:00 committed by GitHub
parent 8b53f8e9bd
commit 35eb018c02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -231,7 +231,7 @@ class PerDestinationQueue(object):
).get("opentracing", {}) ).get("opentracing", {})
# If there is no span context then we are either blacklisting # If there is no span context then we are either blacklisting
# this destination or we are not tracing # this destination or we are not tracing
if not span_context == {}: if span_context:
if "references" not in span_context: if "references" not in span_context:
span_context["references"] = [ span_context["references"] = [
opentracing.active_span_context_as_string() opentracing.active_span_context_as_string()