mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Apply Tidier suggestion
This commit is contained in:
parent
aeb3081111
commit
fc83f4b961
1 changed files with 1 additions and 3 deletions
|
@ -193,9 +193,7 @@ expand_env_variable(InStr, VarName, RawVarValue) ->
|
||||||
|
|
||||||
vcs_vsn(Vcs, Dir) ->
|
vcs_vsn(Vcs, Dir) ->
|
||||||
Key = {Vcs, Dir},
|
Key = {Vcs, Dir},
|
||||||
try ets:lookup_element(rebar_vsn_cache, Key, 2) of
|
try ets:lookup_element(rebar_vsn_cache, Key, 2)
|
||||||
VsnString ->
|
|
||||||
VsnString
|
|
||||||
catch
|
catch
|
||||||
error:badarg ->
|
error:badarg ->
|
||||||
VsnString = vcs_vsn_1(Vcs, Dir),
|
VsnString = vcs_vsn_1(Vcs, Dir),
|
||||||
|
|
Loading…
Reference in a new issue