From cd0b65f4d5d1af1b0d706d3c307687dce17ca3b2 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 14 Apr 2020 15:00:45 +0200 Subject: [PATCH] Fix unused variables from previous commit --- src/mod_shared_roster_mnesia.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_shared_roster_mnesia.erl b/src/mod_shared_roster_mnesia.erl index c83cbfe95..6289a7184 100644 --- a/src/mod_shared_roster_mnesia.erl +++ b/src/mod_shared_roster_mnesia.erl @@ -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) -> ?INFO_MSG("Mnesia table 'sr_user' will be converted to binary", []), 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", []), true; need_transform(_) -> 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) -> Opts2 = case proplists:get_value(name, Opts, false) of false -> Opts;