Apply Tidier suggestion

This commit is contained in:
Tuncer Ayaz 2012-04-16 22:05:50 +02:00
parent aeb3081111
commit fc83f4b961

View file

@ -193,9 +193,7 @@ expand_env_variable(InStr, VarName, RawVarValue) ->
vcs_vsn(Vcs, Dir) ->
Key = {Vcs, Dir},
try ets:lookup_element(rebar_vsn_cache, Key, 2) of
VsnString ->
VsnString
try ets:lookup_element(rebar_vsn_cache, Key, 2)
catch
error:badarg ->
VsnString = vcs_vsn_1(Vcs, Dir),