mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Reverse order in rebar_utils:get_deprecated_global/3
This commit is contained in:
parent
b594d356e1
commit
1daa15293a
1 changed files with 7 additions and 7 deletions
|
@ -234,17 +234,17 @@ vcs_vsn(Vcs, Dir) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
get_deprecated_global(OldOpt, NewOpt, When) ->
|
get_deprecated_global(OldOpt, NewOpt, When) ->
|
||||||
case rebar_config:get_global(OldOpt, undefined) of
|
case rebar_config:get_global(NewOpt, undefined) of
|
||||||
undefined ->
|
undefined ->
|
||||||
case rebar_config:get_global(NewOpt, undefined) of
|
case rebar_config:get_global(OldOpt, undefined) of
|
||||||
undefined ->
|
undefined ->
|
||||||
undefined;
|
undefined;
|
||||||
New ->
|
Old ->
|
||||||
New
|
deprecated(OldOpt, OldOpt, NewOpt, When),
|
||||||
|
Old
|
||||||
end;
|
end;
|
||||||
Old ->
|
New ->
|
||||||
deprecated(OldOpt, OldOpt, NewOpt, When),
|
New
|
||||||
Old
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% ====================================================================
|
%% ====================================================================
|
||||||
|
|
Loading…
Reference in a new issue