summaryrefslogtreecommitdiff
path: root/src/rebar_prv_escriptize.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-04-20 16:46:07 -0700
committerGitHub <noreply@github.com>2018-04-20 16:46:07 -0700
commit9cfe33f97e83f060cb4394f0089c2998994af7f4 (patch)
tree9244942b18f30ac7dc125010eb4acefe0e440b85 /src/rebar_prv_escriptize.erl
parenta73deb79cdeab9430972e6185b178aaa82ef00d4 (diff)
parentf74b69b2f4129b4857eddb0c066808b4b835cf19 (diff)
Merge pull request #1757 from ferd/fix-dialyzer-warnings
Fix various Dialyzer warnings
Diffstat (limited to 'src/rebar_prv_escriptize.erl')
-rw-r--r--src/rebar_prv_escriptize.erl4
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"