diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-04-20 19:27:46 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2018-04-20 19:27:46 -0400 |
commit | 53af2354cc990d23908709ba3b439de5c196023f (patch) | |
tree | edd67dfe383c2d4b18a7230a973cf3a82d8d90a9 /src/rebar_prv_escriptize.erl | |
parent | a73deb79cdeab9430972e6185b178aaa82ef00d4 (diff) |
Fix various Dialyzer warnings
Some still remain from erl_type calls from Dialyzer, but most of them
are handled.
Decided to just ignore rebar_alias since playing with the type specs of
abstract code format is just a nightmare and hard to do cross-versions I
guess.
Diffstat (limited to 'src/rebar_prv_escriptize.erl')
-rw-r--r-- | src/rebar_prv_escriptize.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rebar_prv_escriptize.erl b/src/rebar_prv_escriptize.erl index 3d6e708..4d767fd 100644 --- a/src/rebar_prv_escriptize.erl +++ b/src/rebar_prv_escriptize.erl @@ -267,9 +267,7 @@ rm_newline(String) -> [C || C <- String, C =/= $\n]. write_windows_script(Target) -> - CmdPath = if is_binary(Target) -> <<Target/binary, ".cmd">>; - is_list(Target) -> Target ++ ".cmd" - end, + CmdPath = Target ++ ".cmd", CmdScript= "@echo off\r\n" "setlocal\r\n" |