Remove double indentation

This commit is contained in:
Erik Johnston 2015-09-30 16:46:24 +01:00
parent 257fa1c53e
commit ecd0c0dfc5
1 changed files with 6 additions and 7 deletions

View File

@ -272,8 +272,7 @@ class RoomCreationHandler(BaseHandler):
returned_events.append(power_levels_event)
if room_alias:
if (EventTypes.CanonicalAlias, '') not in initial_state:
if room_alias and (EventTypes.CanonicalAlias, '') not in initial_state:
room_alias_event = create(
etype=EventTypes.CanonicalAlias,
content={"alias": room_alias.to_string()},