From 53af2354cc990d23908709ba3b439de5c196023f Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Fri, 20 Apr 2018 19:27:46 -0400 Subject: 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. --- src/rebar_prv_escriptize.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/rebar_prv_escriptize.erl') 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) -> <>; - is_list(Target) -> Target ++ ".cmd" - end, + CmdPath = Target ++ ".cmd", CmdScript= "@echo off\r\n" "setlocal\r\n" -- cgit v1.1