Skip to content

Commit

Permalink
Use record
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Stanaszek committed Mar 20, 2018
1 parent ee69e98 commit ef91d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ejabberd_config.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ compute_config_file_version(#state{opts = Opts, hosts = Hosts}) ->

filter_out_node_specific_options([]) ->
[];
filter_out_node_specific_options([{local_config, {modules, Host}, Mods} | Opts]) -> % use record
filter_out_node_specific_options([#local_config{key = {modules, Host}, value = Mods} | Opts]) ->
NewMods = lists:foldl(fun(Path, ModList) -> delete_path_in_proplist(ModList, Path) end,
Mods, node_specific_module_options()),
[{local_config, {modules, Host}, NewMods} | filter_out_node_specific_options(Opts)];
Expand Down

0 comments on commit ef91d82

Please sign in to comment.