mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Use lists:foreach because result is ignored
This commit is contained in:
parent
385e3f09ba
commit
fd0697239d
1 changed files with 11 additions and 10 deletions
|
@ -62,7 +62,8 @@
|
|||
%% Build a list of available templates
|
||||
AvailTemplates = find_disk_templates() ++ find_escript_templates(),
|
||||
?CONSOLE("Available templates:\n", []),
|
||||
_ = [begin
|
||||
lists:foreach(
|
||||
fun({Type, F}) ->
|
||||
BaseName = filename:basename(F, ".template"),
|
||||
TemplateTerms = consult(load_file(Type, F)),
|
||||
{_, VarList} = lists:keyfind(variables, 1, TemplateTerms),
|
||||
|
@ -71,7 +72,7 @@
|
|||
end, [], VarList),
|
||||
?CONSOLE(" * ~s: ~s (~p) (variables: ~p)\n",
|
||||
[BaseName, F, Type, string:join(Vars, ", ")])
|
||||
end || {Type, F} <- AvailTemplates],
|
||||
end, AvailTemplates),
|
||||
ok.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue