summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorik Schellekens <joriksch@gmail.com>2019-08-05 11:39:58 +0100
committerGitHub <noreply@github.com>2019-08-05 11:39:58 +0100
commit35eb018c02652b3786bcfdab44961ed8dbb29417 (patch)
tree85ceed4d9ec58b0f42a365e296600725ad70383e
parentTypo (diff)
downloadsynapse-35eb018c02652b3786bcfdab44961ed8dbb29417.tar.xz
Double negatives do not make code that isn't unclear..
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-rw-r--r--synapse/federation/sender/per_destination_queue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/sender/per_destination_queue.py b/synapse/federation/sender/per_destination_queue.py
index f0b910b446..2cba9d191e 100644
--- a/synapse/federation/sender/per_destination_queue.py
+++ b/synapse/federation/sender/per_destination_queue.py
@@ -231,7 +231,7 @@ class PerDestinationQueue(object):
                         ).get("opentracing", {})
                         # If there is no span context then we are either blacklisting
                         # this destination or we are not tracing
-                        if not span_context == {}:
+                        if span_context:
                             if "references" not in span_context:
                                 span_context["references"] = [
                                     opentracing.active_span_context_as_string()