Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove double indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Sep 30, 2015
1 parent 257fa1c commit ecd0c0d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions synapse/handlers/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,13 @@ def create(etype, content, **kwargs):

returned_events.append(power_levels_event)

if room_alias:
if (EventTypes.CanonicalAlias, '') not in initial_state:
room_alias_event = create(
etype=EventTypes.CanonicalAlias,
content={"alias": room_alias.to_string()},
)
if room_alias and (EventTypes.CanonicalAlias, '') not in initial_state:
room_alias_event = create(
etype=EventTypes.CanonicalAlias,
content={"alias": room_alias.to_string()},
)

returned_events.append(room_alias_event)
returned_events.append(room_alias_event)

if (EventTypes.JoinRules, '') not in initial_state:
join_rules_event = create(
Expand Down

0 comments on commit ecd0c0d

Please sign in to comment.