mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +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.
|
||||
|
||||
get_deprecated_global(OldOpt, NewOpt, When) ->
|
||||
case rebar_config:get_global(OldOpt, undefined) of
|
||||
case rebar_config:get_global(NewOpt, undefined) of
|
||||
undefined ->
|
||||
case rebar_config:get_global(NewOpt, undefined) of
|
||||
case rebar_config:get_global(OldOpt, undefined) of
|
||||
undefined ->
|
||||
undefined;
|
||||
New ->
|
||||
New
|
||||
Old ->
|
||||
deprecated(OldOpt, OldOpt, NewOpt, When),
|
||||
Old
|
||||
end;
|
||||
Old ->
|
||||
deprecated(OldOpt, OldOpt, NewOpt, When),
|
||||
Old
|
||||
New ->
|
||||
New
|
||||
end.
|
||||
|
||||
%% ====================================================================
|
||||
|
|
Loading…
Reference in a new issue