ldap: Remove some unnecessary indentation.

We created this redundant pair of conditionals in a preceding commit,
in order to match the indentation of an `except` block so as to slice
the diffs extra finely as we're refactoring auth code.
This commit is contained in:
Tim Abbott
2017-11-17 16:12:05 -08:00
committed by Greg Price
parent c4c8879cf7
commit e91051b1cd

View File

@@ -484,7 +484,6 @@ class ZulipLDAPAuthBackend(ZulipLDAPAuthBackendBase):
if user_profile is not None:
return user_profile, False
if user_profile is None:
if self._realm is None:
raise ZulipLDAPConfigurationError("Realm is None", self.REALM_IS_NONE_ERROR)
# No need to check for an inactive user since they don't exist yet