mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix unused variables from previous commit
This commit is contained in:
parent
b7c088d4b0
commit
cd0b65f4d5
@ -156,13 +156,13 @@ need_transform({sr_user, {U, S}, {G, H}})
|
|||||||
when is_list(U) orelse is_list(S) orelse is_list(G) orelse is_list(H) ->
|
when is_list(U) orelse is_list(S) orelse is_list(G) orelse is_list(H) ->
|
||||||
?INFO_MSG("Mnesia table 'sr_user' will be converted to binary", []),
|
?INFO_MSG("Mnesia table 'sr_user' will be converted to binary", []),
|
||||||
true;
|
true;
|
||||||
need_transform({sr_group, {G, H}, [{name, _} | _]}) ->
|
need_transform({sr_group, {_, _}, [{name, _} | _]}) ->
|
||||||
?INFO_MSG("Mnesia table 'sr_group' will be converted from option Name to Label", []),
|
?INFO_MSG("Mnesia table 'sr_group' will be converted from option Name to Label", []),
|
||||||
true;
|
true;
|
||||||
need_transform(_) ->
|
need_transform(_) ->
|
||||||
false.
|
false.
|
||||||
|
|
||||||
transform(#sr_group{group_host = {G, H}, opts = Opts} = R)
|
transform(#sr_group{group_host = {G, _H}, opts = Opts} = R)
|
||||||
when is_binary(G) ->
|
when is_binary(G) ->
|
||||||
Opts2 = case proplists:get_value(name, Opts, false) of
|
Opts2 = case proplists:get_value(name, Opts, false) of
|
||||||
false -> Opts;
|
false -> Opts;
|
||||||
|
Loading…
Reference in New Issue
Block a user