From 76b725217895550a19edec69a4176e6cf0e09b4c Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Thu, 4 Apr 2019 17:36:31 +0100 Subject: [PATCH] Remove commas and None, to please pep8 --- synapse/util/threepids.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/util/threepids.py b/synapse/util/threepids.py index 3e2ecd488e..4cc7d27ce5 100644 --- a/synapse/util/threepids.py +++ b/synapse/util/threepids.py @@ -49,8 +49,8 @@ def check_3pid_allowed(hs, medium, address): # Check if this user is intended to register for this homeserver if ( - data.get('hs',None) != hs.config.server_name - and data.get('shadow_hs',None) != hs.config.server_name + data.get('hs') != hs.config.server_name + and data.get('shadow_hs') != hs.config.server_name ): defer.returnValue(False)