Skip to content

Commit

Permalink
remove empty file list warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Paxton committed Jun 8, 2018
1 parent 1b0d28a commit 6a7fdff
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/rebar_erlc_compiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,8 @@ dir_recursive(Opts, Dir, CompileOpts) when is_list(CompileOpts) ->
end.

valid_erl_first_conf(FileList) ->
case FileList of
[] -> ?WARN("An empty file list (~p) was provided as part of your erl_files_first directive", [FileList]);
List -> case rebar_utils:is_list_of_strings(List) of
true -> true;
false -> ?ABORT("An invalid file list (~p) was provided as part of your erl_files_first directive",
[FileList])
end
case rebar_utils:is_list_of_strings(FileList) of
true -> true;
false -> ?ABORT("An invalid file list (~p) was provided as part of your erl_files_first directive",
[FileList])
end.

0 comments on commit 6a7fdff

Please sign in to comment.