diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-02-21 15:36:50 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-02-21 15:43:07 +0100 |
commit | c6f6e8a572fe4760aaa9d36d77ab2b9209534054 (patch) | |
tree | 0643113a75183016efb8a368122809cc7ad46443 /src | |
parent | 6f97e6e55bc36b0c2960f4854a43787275236add (diff) |
Fix Dialyzer warning and slightly reformat code
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_lfe_compiler.erl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl index 95d2e84..dc97bb1 100644 --- a/src/rebar_lfe_compiler.erl +++ b/src/rebar_lfe_compiler.erl @@ -64,11 +64,15 @@ compile_lfe(Source, Target, Config) -> Opts = [{i, "include"}, {outdir, "ebin"}, report, return] ++ rebar_config:get_list(Config, erl_opts, []), case lfe_comp:file(Source, Opts) of - {ok, _, []} -> ok; + {ok, _, []} -> + ok; {ok, _, _Warnings} -> case lists:member(fail_on_warning, Opts) of - true -> file:delete(Target), ?FAIL; - false -> ok + true -> + ok = file:delete(Target), + ?FAIL; + false -> + ok end; _ -> ?FAIL end |