From cb881390dce42dab63f18dba59eddd1e4990b969 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Tue, 16 Apr 2019 12:58:14 -0400 Subject: An empty list on applications key should not be treated as missing --- src/rebar_app_utils.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl index 951bc1d..bb706fd 100644 --- a/src/rebar_app_utils.erl +++ b/src/rebar_app_utils.erl @@ -123,8 +123,8 @@ lint_description(AppDetail, AppFile) -> -spec lint_applications(list(), file:filename_all()) -> ok. lint_applications(AppDetail, AppFile) -> - case proplists:get_value(applications, AppDetail, []) of - [] -> ?WARN("~p is missing applications entry", [AppFile]); + case proplists:get_value(applications, AppDetail) of + undefined -> ?WARN("~p is missing applications entry", [AppFile]); AppList when is_list(AppList) -> case lists:member(kernel, AppList) of false -> -- cgit v1.1