diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-04-16 22:05:50 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-04-16 22:09:20 +0200 |
commit | fc83f4b96177a6e66b35ed265852532579a89c5b (patch) | |
tree | 5df4340a322c8b4213a190253e2b616bd7200234 | |
parent | aeb3081111a327d3dc2f43be664c4a4761abde50 (diff) |
Apply Tidier suggestion
-rw-r--r-- | src/rebar_utils.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index a3c8b9b..a70be7d 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -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), |