From 567a4384efe999fb2e1b2b9d8fa0fab9ac57f301 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 24 Sep 2019 13:55:23 +0100 Subject: [PATCH] Fix style --- synapse/handlers/identity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py index adafde004d..6d42a1aed8 100644 --- a/synapse/handlers/identity.py +++ b/synapse/handlers/identity.py @@ -332,10 +332,10 @@ class IdentityHandler(BaseHandler): if next_link: # Manipulate the next_link to add the sid, because the caller won't get # it until we send a response, by which time we've sent the mail. - if '?' in next_link: - next_link += '&' + if "?" in next_link: + next_link += "&" else: - next_link += '?' + next_link += "?" next_link += "sid=" + urllib.parse.quote(session_id) # Generate a new validation token