Cosmetic change: Fix indentation errors

This commit is contained in:
Holger Weiss 2017-05-24 17:16:16 +02:00
parent 69de1780a0
commit 5802062746
2 changed files with 7 additions and 7 deletions

View File

@ -164,7 +164,7 @@ handle_stream_start(_StreamStart, #{lserver := LServer} = State) ->
case check_to(jid:make(LServer), State) of case check_to(jid:make(LServer), State) of
false -> false ->
send(State, xmpp:serr_host_unknown()); send(State, xmpp:serr_host_unknown());
true -> true ->
ServerHost = ejabberd_router:host_of_route(LServer), ServerHost = ejabberd_router:host_of_route(LServer),
State#{server_host => ServerHost} State#{server_host => ServerHost}
end. end.
@ -186,7 +186,7 @@ handle_auth_success(RServer, Mech, _AuthModule,
[SockMod:pp(Socket), Mech, RServer, LServer, [SockMod:pp(Socket), Mech, RServer, LServer,
ejabberd_config:may_hide_data(misc:ip_to_list(IP))]), ejabberd_config:may_hide_data(misc:ip_to_list(IP))]),
State1 = case ejabberd_s2s:allow_host(ServerHost, RServer) of State1 = case ejabberd_s2s:allow_host(ServerHost, RServer) of
true -> true ->
AuthDomains1 = sets:add_element(RServer, AuthDomains), AuthDomains1 = sets:add_element(RServer, AuthDomains),
change_shaper(State, RServer), change_shaper(State, RServer),
State#{auth_domains => AuthDomains1}; State#{auth_domains => AuthDomains1};
@ -310,13 +310,13 @@ code_change(_OldVsn, State, _Extra) ->
-spec check_from_to(jid(), jid(), state()) -> ok | {error, stream_error()}. -spec check_from_to(jid(), jid(), state()) -> ok | {error, stream_error()}.
check_from_to(From, To, State) -> check_from_to(From, To, State) ->
case check_from(From, State) of case check_from(From, State) of
true -> true ->
case check_to(To, State) of case check_to(To, State) of
true -> true ->
ok; ok;
false -> false ->
{error, xmpp:serr_host_unknown()} {error, xmpp:serr_host_unknown()}
end; end;
false -> false ->
{error, xmpp:serr_invalid_from()} {error, xmpp:serr_invalid_from()}
end. end.

View File

@ -321,7 +321,7 @@ get_offline_info(Time, User, Server, Resource) ->
[#session{sid = {Time, _}, info = Info}] -> [#session{sid = {Time, _}, info = Info}] ->
case proplists:get_bool(offline, Info) of case proplists:get_bool(offline, Info) of
true -> true ->
Info; Info;
false -> false ->
none none
end; end;