1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

Use override syntax that rebar3 accepts

This commit is contained in:
Paweł Chmielowski 2018-01-15 11:56:13 +01:00
parent d3aab2ea18
commit 99f8e58eaf
2 changed files with 4 additions and 4 deletions

View file

@ -2,11 +2,11 @@
-export([preprocess/2]).
override_opts(override, Config, Opts) ->
lists:foldl(fun({Opt, Value}, Conf) ->
lists:foldl(fun({Opt, [Value]}, Conf) ->
rebar_config:set(Conf, Opt, Value)
end, Config, Opts);
override_opts(add, Config, Opts) ->
lists:foldl(fun({Opt, Value}, Conf) ->
lists:foldl(fun({Opt, [Value]}, Conf) ->
V = rebar_config:get_local(Conf, Opt, []),
rebar_config:set(Conf, Opt, [Value | V])
end, Config, Opts).