summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-04-09 09:48:09 -0500
committerTristan Sloughter <t@crashfast.com>2015-04-09 09:48:23 -0500
commit39a4ca0c041543aba68740c8e92af1b2af7be883 (patch)
tree925346bacaffb817b3d052fc6955b3ebaf58c429
parentae9b8ea349ca8c7d7d87551f80570b54900c45c4 (diff)
remove unneeded string:tokens for target_base
-rw-r--r--src/rebar_erlc_compiler.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 27bf09b..6b51642 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -355,8 +355,7 @@ internal_erl_compile(Config, Dir, Module, OutDir, ErlOpts) ->
end.
target_base(OutDir, Source) ->
- Module = filename:basename(Source, ".erl"),
- filename:join([OutDir|string:tokens(Module, ".")]).
+ filename:join(OutDir, filename:basename(Source, ".erl")).
-spec compile_mib(file:filename(), file:filename(),
rebar_state:t()) -> 'ok'.